From e6faaf41b754666de9bc2d74124929c50fe3e4b0 Mon Sep 17 00:00:00 2001 From: Michel Roegl-Brunner <73236783+michelroegl-brunner@users.noreply.github.com> Date: Wed, 18 Dec 2024 14:30:55 +0100 Subject: [PATCH] Update syncthing-install.sh --- install/syncthing-install.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/install/syncthing-install.sh b/install/syncthing-install.sh index cfdb0da8..a610582f 100644 --- a/install/syncthing-install.sh +++ b/install/syncthing-install.sh @@ -28,7 +28,11 @@ $STD apt-get install -y syncthing $STD systemctl enable syncthing@root.service systemctl start syncthing@root.service sleep 5 -sed -i "{s/127.0.0.1:8384/0.0.0.0:8384/g}" /root/.config/syncthing/config.xml +if [ -f "/root/.local/state/syncthing/config.xml" ]; then + sed -i "s/127.0.0.1:8384/0.0.0.0:8384/g" /root/.local/state/syncthing/config.xml +elif [ -f "/root/.config/syncthing/config.xml" ]; then + sed -i "s/127.0.0.1:8384/0.0.0.0:8384/g" /root/.config/syncthing/config.xml +fi systemctl restart syncthing@root.service msg_ok "Installed Syncthing"