Switch to v2 stable (#7150)
This commit is contained in:
parent
e32c2b7dea
commit
d465ca87f2
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user