From c017074677a1ca3586478fbed76fb74e524b86d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josu=C3=A9=20Tille?= Date: Wed, 7 Feb 2024 12:10:20 +0100 Subject: [PATCH] Simpify permission set and avoid to set all perms each time --- scripts/_common.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/_common.sh b/scripts/_common.sh index 4d4bdd7..87f2374 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -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 {} \; \