Update linupx-scripts.sh

This commit is contained in:
2025-03-30 09:00:00 -05:00
parent 14001d4d37
commit e2cce37cdf

View File

@@ -180,8 +180,8 @@ 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*" ] && [ ! -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*"
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