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:
parent
346f892484
commit
58070cb32d
1 changed files with 1 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue