From 750a291ccec87ec30e71bee24732775e1c71a225 Mon Sep 17 00:00:00 2001 From: yalh76 Date: Tue, 13 Apr 2021 01:11:15 +0200 Subject: [PATCH] Fix rights --- scripts/install | 6 +++--- scripts/restore | 4 ++-- scripts/upgrade | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/scripts/install b/scripts/install index 031ede2..b9c9399 100755 --- a/scripts/install +++ b/scripts/install @@ -85,7 +85,7 @@ ynh_secure_remove "$final_path/tmp" chmod 750 "$final_path" chmod -R o-rwx "$final_path" -chown -R $app:$app "$final_path" +chown -R $app:www-data "$final_path" #================================================= # NGINX CONFIGURATION @@ -114,12 +114,12 @@ ynh_script_progression --message="Creating statedir and final_logpath..." mkdir -p $statedir chmod 750 "$statedir" chmod -R o-rwx "$statedir" -chown -R $app:$app "$statedir" +chown -R $app:www-data "$statedir" mkdir -p $final_logpath chmod 750 "$final_logpath" chmod -R o-rwx "$final_logpath" -chown -R $app:$app "$final_logpath" +chown -R $app:www-data "$final_logpath" #================================================= # ADD A CONFIGURATION diff --git a/scripts/restore b/scripts/restore index 9ab6b80..b23b13e 100755 --- a/scripts/restore +++ b/scripts/restore @@ -73,14 +73,14 @@ ynh_restore_file --origin_path="$statedir" --not_mandatory mkdir -p $statedir chmod 750 "$statedir" chmod -R o-rwx "$statedir" -chown -R $app:$app "$statedir" +chown -R $app:www-data "$statedir" # Restore logs, data & permissions ynh_restore_file --origin_path="$final_logpath" --not_mandatory mkdir -p $final_logpath chmod 750 "$final_logpath" chmod -R o-rwx "$final_logpath" -chown -R $app:$app "$final_logpath" +chown -R $app:www-data "$final_logpath" #================================================= # RESTORE THE PHP-FPM CONFIGURATION diff --git a/scripts/upgrade b/scripts/upgrade index 73a2024..6883d00 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -96,7 +96,7 @@ fi chmod 750 "$final_path" chmod -R o-rwx "$final_path" -chown -R $app:$app "$final_path" +chown -R $app:www-data "$final_path" #================================================= # NGINX CONFIGURATION