Update nextcloud-perms.sh

This commit is contained in:
Alexandre
2021-09-26 21:48:27 +02:00
committed by GitHub
parent d417753a99
commit 9bf271f28c

View File

@@ -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