From 052f93f01e0cadb7758079c3a1a0a36fced7e38b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Wed, 6 Jul 2022 11:54:34 +0200 Subject: [PATCH] preserve config file --- scripts/upgrade | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index 6bdc026..cbd8182 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -115,7 +115,7 @@ then ynh_secure_remove --file=$final_path # Download, check integrity, uncompress and patch the source from app.src - ynh_setup_source --dest_dir="$final_path" --source_id=$YNH_ARCH + ynh_setup_source --dest_dir="$final_path" --source_id=$YNH_ARCH --keep="$config_path/navidrome.toml" fi chmod 750 "$final_path" @@ -140,15 +140,15 @@ ynh_add_nginx_config #================================================= # UPDATE A CONFIG FILE #================================================= -ynh_script_progression --message="Updating a configuration file..." +# ynh_script_progression --message="Updating a configuration file..." -config_path="/var/lib/$app" +# config_path="/var/lib/$app" -# Uncomment when there is new options added upstream -ynh_add_config --template="../conf/navidrome.toml" --destination="$config_path/navidrome.toml" +# # Uncomment when there is new options added upstream +# ynh_add_config --template="../conf/navidrome.toml" --destination="$config_path/navidrome.toml" -chmod 600 "$config_path/navidrome.toml" -chown -R $app:$app "$config_path" +# chmod 600 "$config_path/navidrome.toml" +# chown -R $app:$app "$config_path" #================================================= # SETUP SYSTEMD