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:
parent
2baa319344
commit
c017074677
1 changed files with 1 additions and 1 deletions
|
@ -178,7 +178,7 @@ set_permissions() {
|
||||||
chown "$app:$app" -R /var/log/$app
|
chown "$app:$app" -R /var/log/$app
|
||||||
chmod u=rwX,g=rX,o= -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 \! -user $app \
|
||||||
-o \! -group $app \) \
|
-o \! -group $app \) \
|
||||||
-exec chown $app:$app {} \; \
|
-exec chown $app:$app {} \; \
|
||||||
|
|
Loading…
Add table
Reference in a new issue