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

Merge pull request #82 from YunoHost-Apps/multi_instance

Enable multi_instance
This commit is contained in:
yalh76 2021-08-01 02:50:45 +02:00 committed by GitHub
commit 8a6fa0fdba
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 4 deletions

View file

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

View file

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

View file

@ -28,7 +28,7 @@
"requirements": {
"yunohost": ">= 4.1.3"
},
"multi_instance": false,
"multi_instance": true,
"services": [
"nginx"
],

View file

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