mirror of
https://github.com/YunoHost-Apps/syncthing_ynh.git
synced 2024-09-03 20:26:23 +02:00
Merge pull request #88 from YunoHost-Apps/testing
Enable multi_instance
This commit is contained in:
commit
ba40babc2a
4 changed files with 5 additions and 4 deletions
|
@ -44,7 +44,7 @@
|
|||
# 1.17.0~ynh1
|
||||
upgrade=1 from_commit=3d2f2de9824f4e76c506bb587e4167255ff5f900
|
||||
backup_restore=1
|
||||
multi_instance=0
|
||||
multi_instance=1
|
||||
port_already_use=0
|
||||
change_url=1
|
||||
;;; Options
|
||||
|
|
|
@ -10,7 +10,8 @@
|
|||
<insecureSkipVerify>false</insecureSkipVerify>
|
||||
</ldap>
|
||||
<options>
|
||||
<listenAddress>default</listenAddress>
|
||||
<listenAddress>tcp://0.0.0.0:__SYNC_PORT__</listenAddress>
|
||||
<listenAddress>quic://0.0.0.0:__SYNC_PORT__</listenAddress>
|
||||
<globalAnnounceServer>default</globalAnnounceServer>
|
||||
<globalAnnounceEnabled>true</globalAnnounceEnabled>
|
||||
<localAnnounceEnabled>true</localAnnounceEnabled>
|
||||
|
|
|
@ -28,7 +28,7 @@
|
|||
"requirements": {
|
||||
"yunohost": ">= 4.1.3"
|
||||
},
|
||||
"multi_instance": false,
|
||||
"multi_instance": true,
|
||||
"services": [
|
||||
"nginx"
|
||||
],
|
||||
|
|
|
@ -142,7 +142,7 @@ chown -R $app: $final_path
|
|||
|
||||
ynh_systemd_action --service_name=$app --action="start" --log_path=systemd --line_match="Access the GUI via the following URL"
|
||||
|
||||
ynh_replace_string --match_string="<listenAddress>tcp://default</listenAddress>" --replace_string="<listenAddress>default</listenAddress>" --target_file="$config_file"
|
||||
ynh_replace_string --match_string="<listenAddress>tcp://quic:%2F%2F0.0.0.0:$sync_port</listenAddress>" --replace_string="<listenAddress>quic//0.0.0.0:$sync_port</listenAddress>" --target_file="$config_file"
|
||||
|
||||
ynh_systemd_action --service_name=$app --action="stop" --log_path=systemd
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue