mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-05-24 01:31:51 +02:00
Update nextcloud-perms.sh
This commit is contained in:
@@ -20,7 +20,7 @@ mkdir -p /data/config/www/nextcloud/occ
|
|||||||
mkdir -p /share/nextcloud
|
mkdir -p /share/nextcloud
|
||||||
mkdir -p /ssl/nextcloud/keys
|
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}
|
#chmod -R 777 ${ocpath}
|
||||||
find ${ocpath}/ -type f -exec chmod 0640 {} \;
|
find ${ocpath}/ -type f -exec chmod 0640 {} \;
|
||||||
find ${ocpath}/ -type d -exec chmod 0750 {} \;
|
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 f -print0 | xargs -0 chmod 0640
|
||||||
#find ${ocpath}/ -type d -print0 | xargs -0 chmod 0750
|
#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 ${rootuser}:${htgroup} ${ocpath}/
|
||||||
chown -R ${htuser}:${htgroup} ${ocpath}/apps/
|
chown -R ${htuser}:${htgroup} ${ocpath}/apps/
|
||||||
chown -R ${htuser}:${htgroup} ${ocpath}/assets/
|
chown -R ${htuser}:${htgroup} ${ocpath}/assets/
|
||||||
|
|||||||
Reference in New Issue
Block a user