From e90ed19caffcdd775befedfade160dbd613d44f4 Mon Sep 17 00:00:00 2001 From: tteckster Date: Thu, 5 Jan 2023 11:28:01 -0500 Subject: [PATCH] Update syncthing-install.sh code refactoring --- install/syncthing-install.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/install/syncthing-install.sh b/install/syncthing-install.sh index c16488f6..f4f9d2ec 100644 --- a/install/syncthing-install.sh +++ b/install/syncthing-install.sh @@ -92,6 +92,10 @@ echo "deb [signed-by=/usr/share/keyrings/syncthing-archive-keyring.gpg] https:// apt-get update &>/dev/null apt-get install -y syncthing &>/dev/null systemctl enable syncthing@root.service &>/dev/null +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 +systemctl restart syncthing@root.service msg_ok "Installed Syncthing" PASS=$(grep -w "root" /etc/shadow | cut -b6)