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