Set timeout to 30s for LE certificates downloading

This commit is contained in:
wpetit 2021-05-31 16:42:05 +02:00
parent a7a820ac6f
commit 0dd899a291

View File

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