Update nextcloud-perms.sh

This commit is contained in:
Alexandre
2021-09-26 22:07:34 +02:00
committed by GitHub
parent 74478f35eb
commit d65da4f50c

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\n"
printf "chmod Files and Directories. This could take some time, please wait...\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. This will take some time, please wait...\n"
printf "chown Directories. This could take some time, please wait...\n"
chown -R ${rootuser}:${htgroup} ${ocpath}/
chown -R ${htuser}:${htgroup} ${ocpath}/apps/
chown -R ${htuser}:${htgroup} ${ocpath}/assets/