From 2b62da0138c6000fae2a65b3459ed7bfd745e22d Mon Sep 17 00:00:00 2001 From: "ljf (zamentur)" Date: Fri, 8 Dec 2023 22:24:00 +0100 Subject: [PATCH] [enh] Faster permission setter during install after a remove --- scripts/install | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/scripts/install b/scripts/install index 102e984..59d22f1 100755 --- a/scripts/install +++ b/scripts/install @@ -336,10 +336,8 @@ ynh_multimedia_addaccess $app # Fix app ownerships & permissions chown -R $app:www-data "$final_path" chown -R $app: "$datadir" -find $final_path/ -type f -print0 | xargs -r0 chmod 0644 -find $final_path/ -type d -print0 | xargs -r0 chmod 0755 -find $datadir/ -type f -print0 | xargs -r0 chmod 0640 -find $datadir/ -type d -print0 | xargs -r0 chmod 0750 +chmod -R a=r,u+w,a+X $final_path/ +chmod -R a=r,u+w,a+X $datadir/ chmod 640 "$final_path/config/config.php" chmod 755 /home/yunohost.app chmod 750 $final_path