From 54ee948afd18f90680dde65ee9b636bbf96697d4 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Sat, 4 Sep 2021 08:58:41 +0200 Subject: [PATCH] Update upgrade --- scripts/upgrade | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index 669754e..9895944 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -86,10 +86,6 @@ then ynh_setup_source --dest_dir=$final_path fi -chmod 750 "$final_path" -chmod -R o-rwx "$final_path" -chown -R $app:www-data "$final_path" - #================================================= # NGINX CONFIGURATION #================================================= @@ -126,6 +122,10 @@ fi ynh_script_progression --message="Modifying a config file..." --weight=2 ynh_add_config --template="../conf/config.json.example" --destination="$final_path/config/config.json" + +chmod 750 "$final_path" +chmod -R o-rwx "$final_path" +chown -R $app:www-data "$final_path" chmod 600 $final_path/config/config.json chown $app:$app $final_path/config/config.json