Browse Source

Update syncthing-install.sh (#2066)

Fix "301 Moved Permanently" for curl
efr2et 1 năm trước cách đây
mục cha
commit
f2aed7d532
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      install/syncthing-install.sh

+ 1 - 1
install/syncthing-install.sh

@@ -21,7 +21,7 @@ $STD apt-get install -y gnupg
 msg_ok "Installed Dependencies"
 msg_ok "Installed Dependencies"
 
 
 msg_info "Installing Syncthing"
 msg_info "Installing Syncthing"
-curl -s -o /usr/share/keyrings/syncthing-archive-keyring.gpg https://syncthing.net/release-key.gpg
+curl -sL -o /usr/share/keyrings/syncthing-archive-keyring.gpg https://syncthing.net/release-key.gpg
 sh -c 'echo "deb [signed-by=/usr/share/keyrings/syncthing-archive-keyring.gpg] https://apt.syncthing.net/ syncthing stable" > /etc/apt/sources.list.d/syncthing.list'
 sh -c 'echo "deb [signed-by=/usr/share/keyrings/syncthing-archive-keyring.gpg] https://apt.syncthing.net/ syncthing stable" > /etc/apt/sources.list.d/syncthing.list'
 $STD apt-get update
 $STD apt-get update
 $STD apt-get install -y syncthing
 $STD apt-get install -y syncthing