From afef8ff4a31e76c2aef4381430c12d785e07bd2e Mon Sep 17 00:00:00 2001 From: Awadhoot Jog Date: Fri, 3 Jan 2020 13:12:21 +0530 Subject: [PATCH] use github raw urls curl fetches html content for non-raw urls --- docker/init-selfcert.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docker/init-selfcert.sh b/docker/init-selfcert.sh index ffa33a67b..0592a1e4a 100644 --- a/docker/init-selfcert.sh +++ b/docker/init-selfcert.sh @@ -17,8 +17,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://github.com/certbot/certbot/blob/master/certbot-nginx/certbot_nginx/_internal/tls_configs/options-ssl-nginx.conf > "$data_path/conf/options-ssl-nginx.conf" - curl -s https://github.com/certbot/certbot/blob/master/certbot/certbot/ssl-dhparams.pem > "$data_path/conf/ssl-dhparams.pem" + 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" echo fi