From 3d70d72cfbfacba58da2bde2d0ab4a10a3faeffd Mon Sep 17 00:00:00 2001 From: yalh76 Date: Fri, 23 Apr 2021 19:54:08 +0200 Subject: [PATCH] Switching to $app:www-data owner --- scripts/install | 3 +-- scripts/restore | 3 +-- scripts/upgrade | 3 +-- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/scripts/install b/scripts/install index ccf477f..71ba52d 100755 --- a/scripts/install +++ b/scripts/install @@ -161,8 +161,7 @@ ynh_setup_source --dest_dir="$final_path" # this will be treated as a security issue. chmod 750 "$final_path" chmod -R o-rwx "$final_path" -chown -R root: "$final_path" -chown root:$app "$final_path" +chown -R $app:www-data "$final_path" #================================================= # NGINX CONFIGURATION diff --git a/scripts/restore b/scripts/restore index 7e635ce..e94c5d8 100755 --- a/scripts/restore +++ b/scripts/restore @@ -76,8 +76,7 @@ ynh_restore_file --origin_path="$final_path" # this will be treated as a security issue. chmod 750 "$final_path" chmod -R o-rwx "$final_path" -chown -R root: "$final_path" -chown root:$app "$final_path" +chown -R $app:www-data "$final_path" #================================================= # RESTORE THE PHP-FPM CONFIGURATION diff --git a/scripts/upgrade b/scripts/upgrade index 146252a..b8f459c 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -129,8 +129,7 @@ fi # this will be treated as a security issue. chmod 750 "$final_path" chmod -R o-rwx "$final_path" -chown -R root: "$final_path" -chown root:$app "$final_path" +chown -R $app:www-data "$final_path" #================================================= # NGINX CONFIGURATION