diff --git a/install.sh b/install.sh index 2c28259..97e1795 100755 --- a/install.sh +++ b/install.sh @@ -7,19 +7,18 @@ if [ -z $userStr ]; then echo "create openhab user and group" - useradd -r -s /sbin/nologin openhab + useradd -N -r -s /sbin/nologin openhab fi # gut user id uid=$(id openhab -u) -gid=$(id openhab -g) # create directories mkdir -p data/conf mkdir -p data/userdata mkdir -p data/addons -chown -R ${uid}:${gid} data +chown -R ${uid} data chmod -R 770 data # replace uid and gid in config file