Switch to v2 stable (#7150)

This commit is contained in:
Slaviša Arežina 2025-08-24 20:48:08 +02:00 committed by GitHub
parent e32c2b7dea
commit d465ca87f2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -13,16 +13,19 @@ setting_up_container
network_check network_check
update_os update_os
msg_info "Installing Syncthing" msg_info "Setting up Syncthing repo"
curl -fsSL -o /usr/share/keyrings/syncthing-archive-keyring.gpg https://syncthing.net/release-key.gpg mkdir -p /etc/apt/keyrings
sh -c 'echo "deb [signed-by=/usr/share/keyrings/syncthing-archive-keyring.gpg] https://apt.syncthing.net/ syncthing stable" > /etc/apt/sources.list.d/syncthing.list' curl -fsSL "https://syncthing.net/release-key.gpg" -o /etc/apt/keyrings/syncthing-archive-keyring.gpg
echo "deb [signed-by=/etc/apt/keyrings/syncthing-archive-keyring.gpg] https://apt.syncthing.net/ syncthing stable-v2" >/etc/apt/sources.list.d/syncthing.list
$STD apt-get update $STD apt-get update
msg_ok "Set up Syncthing repo"
msg_info "Installing Syncthing"
$STD apt-get install -y syncthing $STD apt-get install -y syncthing
$STD systemctl enable syncthing@root.service systemctl enable -q --now syncthing@root
systemctl start syncthing@root.service
sleep 5 sleep 5
sed -i "{s/127.0.0.1:8384/0.0.0.0:8384/g}" /root/.local/state/syncthing/config.xml sed -i "{s/127.0.0.1:8384/0.0.0.0:8384/g}" /root/.local/state/syncthing/config.xml
systemctl restart syncthing@root.service systemctl restart syncthing@root
msg_ok "Installed Syncthing" msg_ok "Installed Syncthing"
motd_ssh motd_ssh