Fixes (#9872)
This commit is contained in:
parent
18d620705d
commit
7255edc21b
@ -27,9 +27,10 @@ function update_script() {
|
|||||||
msg_error "No ${APP} Installation Found!"
|
msg_error "No ${APP} Installation Found!"
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
msg_info "Updating ${APP} LXC"
|
|
||||||
|
msg_info "Updating Syncthing"
|
||||||
$STD apt update
|
$STD apt update
|
||||||
$STD apt -y upgrade
|
$STD apt upgrade -y
|
||||||
msg_ok "Updated successfully!"
|
msg_ok "Updated successfully!"
|
||||||
exit
|
exit
|
||||||
}
|
}
|
||||||
|
|||||||
@ -13,26 +13,20 @@ setting_up_container
|
|||||||
network_check
|
network_check
|
||||||
update_os
|
update_os
|
||||||
|
|
||||||
msg_info "Setting up Syncthing repo"
|
setup_deb822_repo \
|
||||||
mkdir -p /usr/share/keyrings
|
"syncthing" \
|
||||||
curl -fsSL "https://syncthing.net/release-key.gpg" -o /usr/share/keyrings/syncthing-archive-keyring.gpg
|
"https://syncthing.net/release-key.gpg" \
|
||||||
cat <<EOF >/etc/apt/sources.list.d/syncthing.sources
|
"https://apt.syncthing.net/" \
|
||||||
Types: deb
|
"syncthing" \
|
||||||
URIs: https://apt.syncthing.net/
|
"stable-v2"
|
||||||
Suites: syncthing
|
|
||||||
Components: stable-v2
|
|
||||||
Signed-By: /usr/share/keyrings/syncthing-archive-keyring.gpg
|
|
||||||
EOF
|
|
||||||
$STD apt update
|
|
||||||
msg_ok "Set up Syncthing repo"
|
|
||||||
|
|
||||||
msg_info "Installing Syncthing"
|
msg_info "Setting up Syncthing"
|
||||||
$STD apt install -y syncthing
|
$STD apt install -y syncthing
|
||||||
systemctl enable -q --now syncthing@root
|
systemctl enable -q --now syncthing@root
|
||||||
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
|
systemctl restart syncthing@root
|
||||||
msg_ok "Installed Syncthing"
|
msg_ok "Setup Syncthing"
|
||||||
|
|
||||||
motd_ssh
|
motd_ssh
|
||||||
customize
|
customize
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user