Update linupx-scripts.sh

This commit is contained in:
2025-03-30 09:07:49 -05:00
parent e2cce37cdf
commit fbab86377d

View File

@@ -180,8 +180,9 @@ DOCKER_UPDATE(){
} }
SYNCTHING_APT_UPDATE(){ SYNCTHING_APT_UPDATE(){
if [ -f "/etc/apt/sources.list.d/*syncthing*" ] && [ ! -f /etc/apt/keyrings/syncthing-archive-keyring.gpg ]; then if [ -f /etc/apt/sources.list.d/syncthing.list ] && [ ! -f /etc/apt/keyrings/syncthing-archive-keyring.gpg ]; then
rm -f "/etc/apt/sources.list.d/*syncthing*" rm -f "/etc/apt/sources.list.d/*syncthing*"
rm -f "/etc/apt/keyrings/*syncthing*"
mkdir -p /etc/apt/keyrings mkdir -p /etc/apt/keyrings
curl -L -o /etc/apt/keyrings/syncthing-archive-keyring.gpg https://syncthing.net/release-key.gpg curl -L -o /etc/apt/keyrings/syncthing-archive-keyring.gpg https://syncthing.net/release-key.gpg
echo "deb [signed-by=/etc/apt/keyrings/syncthing-archive-keyring.gpg] https://apt.syncthing.net/ syncthing stable" | sudo tee /etc/apt/sources.list.d/syncthing.list echo "deb [signed-by=/etc/apt/keyrings/syncthing-archive-keyring.gpg] https://apt.syncthing.net/ syncthing stable" | sudo tee /etc/apt/sources.list.d/syncthing.list