Skip to content

Commit

Permalink
Change user group and access rights (#126)
Browse files Browse the repository at this point in the history
* Change user group and access rights

* Delete chmod 777 commands

Fixes #123

Signed-off-by: Christian Häussler <[email protected]> (github: @cniweb)
  • Loading branch information
cniweb authored Jan 21, 2018
1 parent a6438b7 commit a4f2445
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions scripts/installer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -270,11 +270,11 @@ postinst ()
elif [ "${pkgwizard_public_shome}" == "true" ]; then
synoshare --setuser smarthome RO + ${DAEMON_USER}
fi
chown -hR ${DAEMON_USER} ${OH_CONF}
chown -hR ${DAEMON_USER} ${OH_ADDONS}
chown -hR ${DAEMON_USER} ${OH_USERDATA}
chown -hR ${DAEMON_USER}:users ${OH_CONF}
chown -hR ${DAEMON_USER}:users ${OH_ADDONS}
chown -hR ${DAEMON_USER}:users ${OH_USERDATA}
fi
chown -hR ${DAEMON_USER} ${SYNOPKG_PKGDEST}
chown -hR ${DAEMON_USER}:users ${SYNOPKG_PKGDEST}

#if Z-Wave dir exists -> change rights for binding
if [ -d /dev/ttyACM0 ]; then
Expand Down

0 comments on commit a4f2445

Please sign in to comment.