From e3cd8b57f5d7779642a04e44ed8752634812d3e1 Mon Sep 17 00:00:00 2001 From: Giuseppe C <1191978+AvverbioPronome@users.noreply.github.com> Date: Fri, 3 Apr 2020 11:13:59 +0200 Subject: [PATCH] add `-f` switch to curl reason: https://community.letsencrypt.org/t/500-interval-server-error-in-options-ssl-nginx-conf-rate-limit/118286?u=9peppe explanation: 22. HTTP page not retrieved. The requested url was not found or returned another error with the HTTP error code being 400 or above. This return code only appears if `-f`, `--fail` is used. https://ec.haxx.se/usingcurl/usingcurl-returns --- init-letsencrypt.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/init-letsencrypt.sh b/init-letsencrypt.sh index 13eaa757..69302f55 100755 --- a/init-letsencrypt.sh +++ b/init-letsencrypt.sh @@ -22,8 +22,8 @@ fi if [ ! -e "$data_path/conf/options-ssl-nginx.conf" ] || [ ! -e "$data_path/conf/ssl-dhparams.pem" ]; then echo "### Downloading recommended TLS parameters ..." mkdir -p "$data_path/conf" - curl -s https://raw.githubusercontent.com/certbot/certbot/master/certbot-nginx/certbot_nginx/_internal/tls_configs/options-ssl-nginx.conf > "$data_path/conf/options-ssl-nginx.conf" - curl -s https://raw.githubusercontent.com/certbot/certbot/master/certbot/certbot/ssl-dhparams.pem > "$data_path/conf/ssl-dhparams.pem" + curl -sf https://raw.githubusercontent.com/certbot/certbot/master/certbot-nginx/certbot_nginx/_internal/tls_configs/options-ssl-nginx.conf > "$data_path/conf/options-ssl-nginx.conf" + curl -sf https://raw.githubusercontent.com/certbot/certbot/master/certbot/certbot/ssl-dhparams.pem > "$data_path/conf/ssl-dhparams.pem" echo fi