From 0da5c0bd2b511df15c1000bf145978cbef69b0fa Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Fri, 1 Nov 2024 21:40:30 +0300 Subject: [PATCH] updated syncthing defaults... Signed-off-by: Alex A. Naanou --- syncthing/make.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/syncthing/make.sh b/syncthing/make.sh index d691259..b4187a3 100755 --- a/syncthing/make.sh +++ b/syncthing/make.sh @@ -17,6 +17,9 @@ readConfig #---------------------------------------------------------------------- +#SYNCTHING_CONFIG=/var/lib/syncthing/.config/syncthing/config.xml +SYNCTHING_CONFIG=/var/lib/syncthing/.local/state/syncthing/config.xml + DFL_ID=${DFL_ID:=1010} DFL_CTHOSTNAME=${DFL_CTHOSTNAME:=syncthing} @@ -49,6 +52,9 @@ OPTS_STAGE_2="\ " + + + #---------------------------------------------------------------------- echo "# Building config..." @@ -76,7 +82,7 @@ sleep ${TIMEOUT:=5} sed \ -e 's/tls="false"/tls="true"/g' \ -e 's/127\.0\.0\.1:8384/0.0.0.0:443/g' \ - -i /var/lib/syncthing/.config/syncthing/config.xml + -i "$SYNCTHING_CONFIG" echo "# Setup: firewall..." @ cp --backup -i fw/ID.fw /etc/pve/firewall/$ID.fw