From 10a8b23e260c76235d618abffbd94486def92b94 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Sun, 7 Feb 2021 21:29:18 +0100 Subject: [PATCH] Fix --- scripts/install | 16 ++++++++-------- scripts/upgrade | 6 +++--- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/scripts/install b/scripts/install index cc23349..a336505 100644 --- a/scripts/install +++ b/scripts/install @@ -109,13 +109,13 @@ ynh_script_progression --message="Modifying a config file..." --weight=1 config_path="/var/lib/$app" mkdir -p "$config_path" -#cp ../conf/navidrome.toml "$config_path/navidrome.toml" +cp ../conf/navidrome.toml "$config_path/navidrome.toml" # Main config File -#ynh_replace_string --match_string="__PORT__" --replace_string="$port" --target_file="$config_path/navidrome.toml" -#ynh_replace_string --match_string="__PATH_URL__" --replace_string="$path_url" --target_file="$config_path/navidrome.toml" -#ynh_replace_string --match_string="__CONFIG_PATH__" --replace_string="$config_path" --target_file="$config_path/navidrome.toml" -ynh_add_config --template="../conf/navidrome.toml" --destination="$config_path/navidrome.toml" +ynh_replace_string --match_string="__PORT__" --replace_string="$port" --target_file="$config_path/navidrome.toml" +ynh_replace_string --match_string="__PATH_URL__" --replace_string="$path_url" --target_file="$config_path/navidrome.toml" +ynh_replace_string --match_string="__CONFIG_PATH__" --replace_string="$config_path" --target_file="$config_path/navidrome.toml" + ynh_store_file_checksum --file="$config_path/navidrome.toml" #================================================= @@ -123,9 +123,9 @@ ynh_store_file_checksum --file="$config_path/navidrome.toml" #================================================= ynh_script_progression --message="Configuring a systemd service..." --weight=1 -#ynh_replace_string --match_string="__APP__" --replace_string="$app" --target_file="../conf/systemd.service" -#ynh_replace_string --match_string="__FINAL_PATH__" --replace_string="$final_path" --target_file="../conf/systemd.service" -#ynh_replace_string --match_string="__CONFIG_PATH__" --replace_string="$config_path" --target_file="../conf/systemd.service" +ynh_replace_string --match_string="__APP__" --replace_string="$app" --target_file="../conf/systemd.service" +ynh_replace_string --match_string="__FINAL_PATH__" --replace_string="$final_path" --target_file="../conf/systemd.service" +ynh_replace_string --match_string="__CONFIG_PATH__" --replace_string="$config_path" --target_file="../conf/systemd.service" ynh_add_systemd_config diff --git a/scripts/upgrade b/scripts/upgrade index a2adb5e..17ae65a 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -121,9 +121,9 @@ ynh_script_progression --message="Configuring a systemd service..." --weight=2 config_path="/var/lib/$app" -#ynh_replace_string --match_string="__APP__" --replace_string="$app" --target_file="../conf/systemd.service" -#ynh_replace_string --match_string="__FINAL_PATH__" --replace_string="$final_path" --target_file="../conf/systemd.service" -#ynh_replace_string --match_string="__CONFIG_PATH__" --replace_string="$config_path" --target_file="../conf/systemd.service" +ynh_replace_string --match_string="__APP__" --replace_string="$app" --target_file="../conf/systemd.service" +ynh_replace_string --match_string="__FINAL_PATH__" --replace_string="$final_path" --target_file="../conf/systemd.service" +ynh_replace_string --match_string="__CONFIG_PATH__" --replace_string="$config_path" --target_file="../conf/systemd.service" # Create a dedicated systemd config ynh_add_systemd_config