1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/xwiki_ynh.git synced 2024-09-03 20:36:11 +02:00

Simpify permission set and avoid to set all perms each time

This commit is contained in:
Josué Tille 2024-02-07 12:10:20 +01:00
parent 2baa319344
commit c017074677
No known key found for this signature in database
GPG key ID: 5F259226AD51F2F5

View file

@ -178,7 +178,7 @@ set_permissions() {
chown "$app:$app" -R /var/log/$app
chmod u=rwX,g=rX,o= -R /var/log/$app
find $data_dir \( \! -perm u=rwX,g=rX,-o= \
find $data_dir \( \! -perm -o= \
-o \! -user $app \
-o \! -group $app \) \
-exec chown $app:$app {} \; \