diff --git a/nextcloud/root/defaults/nextcloud-perms.sh b/nextcloud/root/defaults/nextcloud-perms.sh index d6aacaffb..731454e73 100644 --- a/nextcloud/root/defaults/nextcloud-perms.sh +++ b/nextcloud/root/defaults/nextcloud-perms.sh @@ -20,7 +20,7 @@ mkdir -p /data/config/www/nextcloud/occ mkdir -p /share/nextcloud mkdir -p /ssl/nextcloud/keys -printf "chmod Files and Directories. This will take some time, please wait...\n" +printf "chmod Files and Directories\n" #chmod -R 777 ${ocpath} find ${ocpath}/ -type f -exec chmod 0640 {} \; find ${ocpath}/ -type d -exec chmod 0750 {} \; @@ -28,7 +28,7 @@ find ${ocpath}/ -type d -exec chmod 0750 {} \; #find ${ocpath}/ -type f -print0 | xargs -0 chmod 0640 #find ${ocpath}/ -type d -print0 | xargs -0 chmod 0750 -printf "chown Directories\n" +printf "chown Directories. This will take some time, please wait...\n" chown -R ${rootuser}:${htgroup} ${ocpath}/ chown -R ${htuser}:${htgroup} ${ocpath}/apps/ chown -R ${htuser}:${htgroup} ${ocpath}/assets/ @@ -37,7 +37,7 @@ chown -R ${htuser}:${htgroup} ${ocpath}/data/ chown -R ${htuser}:${htgroup} ${ocpath}/themes/ chown -R ${htuser}:${htgroup} ${ocpath}/updater/ chown -R ${htuser}:${htgroup} /share/nextcloud -chown -R ${htuser}:${htgroup} /ssl/nextcloud/keys +chown -R ${htuser}:${htgroup} /ssl/nextcloud/keys || true chmod +x ${ocpath}/occ