From e22c60c5fc42f83a9c910e7df1511383c76682e0 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Tue, 14 Sep 2021 00:12:37 +0200 Subject: [PATCH] Update upgrade --- scripts/upgrade | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index 04a0f34..bc105ba 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -61,10 +61,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" - #================================================= # ADD A CONFIGURATION #================================================= @@ -72,6 +68,10 @@ ynh_script_progression --message="Adding a configuration file..." --weight=1 ynh_add_config --template="../conf/config.json" --destination="$final_path/config.json" +chmod 750 "$final_path" +chmod -R o-rwx "$final_path" +chown -R $app:www-data "$final_path" + #================================================= # NGINX CONFIGURATION #=================================================