From c1d6ee4a7da8ef80a14e4a97fce11d5383ca36af Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Wed, 2 Jun 2021 09:50:46 +0200 Subject: [PATCH] Fix --- scripts/install | 4 ++-- scripts/restore | 4 ++-- scripts/upgrade | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/scripts/install b/scripts/install index c8fb52b..b5bb202 100755 --- a/scripts/install +++ b/scripts/install @@ -97,8 +97,8 @@ ynh_app_setting_set --app=$app --key=final_path --value=$final_path ynh_setup_source --dest_dir="$final_path" --source_id="$architecture" chmod 750 "$final_path" -#chmod -R o-rwx "$final_path" -chown -R $app: "$final_path" +chmod -R o-rwx "$final_path" +chown -R $app:www-data "$final_path" #================================================= # CREATE DATA AND GROUPS FOLDER diff --git a/scripts/restore b/scripts/restore index 9e397e6..85524bd 100755 --- a/scripts/restore +++ b/scripts/restore @@ -68,8 +68,8 @@ ynh_script_progression --message="Restoring the app main directory..." --weight= ynh_restore_file --origin_path="$final_path" chmod 750 "$final_path" -#chmod -R o-rwx "$final_path" -chown -R $app: "$final_path" +chmod -R o-rwx "$final_path" +chown -R $app:www-data "$final_path" #================================================= # RESTORE SYSTEMD diff --git a/scripts/upgrade b/scripts/upgrade index 50d38c1..e6161fd 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -104,8 +104,8 @@ then fi chmod 750 "$final_path" -#chmod -R o-rwx "$final_path" -chown -R $app: "$final_path" +chmod -R o-rwx "$final_path" +chown -R $app:www-data "$final_path" #================================================= # NGINX CONFIGURATION