From 718a914144c5d0abbf48ce39f4b6817513fd8e16 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Sat, 4 Sep 2021 10:25:27 +0200 Subject: [PATCH] Update upgrade --- scripts/upgrade | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index 9895944..e022933 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -123,12 +123,6 @@ 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 - #================================================= # SETUP SYSTEMD #================================================= @@ -139,6 +133,12 @@ ynh_replace_string --match_string="__ENV_PATH__" --replace_string="$PATH" --targ # Create a dedicated systemd config ynh_add_systemd_config +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 + #================================================= # INTEGRATE SERVICE IN YUNOHOST #=================================================