From eb72179fe578e4a62d1d8513801f4f264365b764 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Wed, 15 Nov 2023 18:54:52 +0100 Subject: [PATCH] fix --- scripts/install | 2 +- scripts/upgrade | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/scripts/install b/scripts/install index 24b7bee..8a6c666 100644 --- a/scripts/install +++ b/scripts/install @@ -78,7 +78,7 @@ popd ynh_script_progression --message="Modifying a config file..." --weight=1 url_path=${path#/} -ynh_add_config --template="../conf/config.json.example" --destination="$install_dir/config.json" +ynh_add_config --template="config.json.example" --destination="$install_dir/config.json" chmod 600 "$install_dir/config.json" chown $app:$app "$install_dir/config.json" diff --git a/scripts/upgrade b/scripts/upgrade index ae86ab0..96ace07 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -98,6 +98,17 @@ then popd fi +#================================================= +# MODIFY A CONFIG FILE +#================================================= +ynh_script_progression --message="Modifying a config file..." --weight=1 + +url_path=${path#/} +ynh_add_config --template="config.json.example" --destination="$install_dir/config.json" + +chmod 600 "$install_dir/config.json" +chown $app:$app "$install_dir/config.json" + #================================================= # START SYSTEMD SERVICE #=================================================