From 58070cb32d642a8c7a1d34eba9bda0278cc17e0a Mon Sep 17 00:00:00 2001 From: yalh76 Date: Fri, 26 Feb 2021 01:52:50 +0100 Subject: [PATCH] ynh_add_config --- scripts/install | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/scripts/install b/scripts/install index 57fe58f..2eb1e14 100644 --- a/scripts/install +++ b/scripts/install @@ -123,10 +123,7 @@ ynh_script_progression --message="Modifying a config file..." mkdir -p "$final_path/.config/syncthing" config_file="$final_path/.config/syncthing/config.xml" -cp "../conf/config.xml" "$config_file" - -ynh_replace_string --match_string="__GUI_PORT__" --replace_string="$gui_port" --target_file="$config_file" -ynh_replace_string --match_string="__SYNC_HOME__" --replace_string="$sync_home" --target_file="$config_file" +ynh_add_config --template="../conf/config.xml" --destination="$config_file" #================================================= # FIX LISTENING SERVICE