Skip to content

Commit

Permalink
Merge pull request #1045 from vorsel/dev
Browse files Browse the repository at this point in the history
PKG-262 hetzner: retry downloading GO binary for 3 times
  • Loading branch information
vorsel authored Nov 8, 2024
2 parents 99697e9 + 9be489f commit 3968353
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packaging/scripts/mongodb-backup_builder.sh
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,11 @@ install_golang() {
elif [ x"$ARCH" = "xaarch64" ]; then
GO_ARCH="arm64"
fi
wget https://go.dev/dl/go1.22.8.linux-${GO_ARCH}.tar.gz -O /tmp/go1.22.tar.gz
for i in {1..3}; do
wget https://go.dev/dl/go1.22.8.linux-${GO_ARCH}.tar.gz -O /tmp/go1.22.tar.gz && break
echo "Failed to download GOLang, retrying in 10 seconds..."
sleep 10
done
tar --transform=s,go,go1.22, -zxf /tmp/go1.22.tar.gz
rm -rf /usr/local/go*
mv go1.22 /usr/local/
Expand Down

0 comments on commit 3968353

Please sign in to comment.