Update linupx-scripts.sh
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user