diff options
Diffstat (limited to 'scripts/xds-utils')
-rwxr-xr-x | scripts/xds-utils/get-syncthing.sh | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/scripts/xds-utils/get-syncthing.sh b/scripts/xds-utils/get-syncthing.sh index cebabbd..fabbf6b 100755 --- a/scripts/xds-utils/get-syncthing.sh +++ b/scripts/xds-utils/get-syncthing.sh @@ -60,7 +60,16 @@ if [ "$?" != 0 ]; then exit 1 fi -${GPG} -q --keyserver pool.sks-keyservers.net --recv-keys 37C84554E7E0A261E4F76E1ED26E6ED000654A3E || exit 1 +# Workaround about issue with the particular GPG keyserver: +# trying several explicit keyservers until the command succeeds +# (see https://github.com/jacobalberty/unifi-docker/issues/64) +for server in $(shuf -e ha.pool.sks-keyservers.net \ + hkp://p80.pool.sks-keyservers.net:80 \ + keyserver.ubuntu.com \ + hkp://keyserver.ubuntu.com:80 \ + pgp.mit.edu) ; do + ${GPG} -q --keyserver "$server" --recv-keys 37C84554E7E0A261E4F76E1ED26E6ED000654A3E && break || : +done tarball="syncthing-${GOOS_ST}-${GOARCH}-v${SYNCTHING_VERSION}.${TB_EXT}" \ && curl --connect-timeout 60 --retry 3 -sfSL "https://github.com/syncthing/syncthing/releases/download/v${SYNCTHING_VERSION}/${tarball}" -O \ |