1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/syncthing_ynh.git synced 2024-09-03 20:26:23 +02:00

ynh_add_config

This commit is contained in:
yalh76 2021-02-26 01:52:50 +01:00
parent 346f892484
commit 58070cb32d

View file

@ -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