nginx-certbot
nginx-certbot copied to clipboard
[2.x, 1.x?] Certbot shuffled files
diff --git a/init-letsencrypt.sh b/init-letsencrypt.sh
index f282b37..154c48e 100755
--- a/init-letsencrypt.sh
+++ b/init-letsencrypt.sh
@@ -1,5 +1,5 @@
#!/bin/bash
-set -e
+set -ex
domains=(example.com www.example.com) # Specify domains here or use the -d argument
data_path="./data/certbot" # Specify data path here or use the --data-path argument
@@ -80,8 +80,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/tls_configs/options-ssl-nginx.conf > "$data_path/conf/options-ssl-nginx.conf"
- curl -s https://raw.githubusercontent.com/certbot/certbot/master/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
I was just about to post this as well, caught me out.