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 #=================================================