From fbab86377d35bb0b9afcef98ec41f700f40dc217 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sun, 30 Mar 2025 09:07:49 -0500 Subject: [PATCH] Update linupx-scripts.sh --- linupx-scripts.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/linupx-scripts.sh b/linupx-scripts.sh index 85eb9ef..daca844 100755 --- a/linupx-scripts.sh +++ b/linupx-scripts.sh @@ -180,8 +180,9 @@ DOCKER_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/keyrings/*syncthing*" mkdir -p /etc/apt/keyrings 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