diff options
author | Sebastien Douheret <sebastien.douheret@iot.bzh> | 2018-08-20 09:47:44 +0200 |
---|---|---|
committer | Sebastien Douheret <sebastien.douheret@iot.bzh> | 2018-08-20 09:48:55 +0200 |
commit | 8e18650d881cbf3d7016e10442e34096d7cca127 (patch) | |
tree | 96ccf4db864f8b21195e9438795a1795437d8c24 /scripts/xds-utils | |
parent | bb34a059939273ef71fa067feff357a6278820e2 (diff) |
Fixed GPG keyserver intermittenly failure
Workaround about issue with the particular GPG keyserver:
trying several explicit keyservers until the command succeeds
Change-Id: I7410c07e25d25006c9252b97036c3b33ca183ae6
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
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 \ |