Retry download LE certificates before failing

This commit is contained in:
wpetit 2021-05-31 16:36:45 +02:00
parent ce5192d1d9
commit a7a820ac6f
1 changed files with 1 additions and 1 deletions

View File

@ -19,7 +19,7 @@ cd "$DESTDIR"
for cert in $CERTS; do
echo "Downloading '$cert'..."
filename=$(basename "$cert")
wget -O "$filename" "$cert"
wget --tries=5 -O "$filename" "$cert"
openssl x509 -in "$filename" -inform PEM -out "$filename.crt"
done