1
0
mirror of https://github.com/wmnnd/nginx-certbot synced 2023-04-20 18:47:46 +08:00

Fixes are on the way

This commit is contained in:
Yaroslav 2018-11-28 20:11:05 +04:00
parent 1504f3f899
commit a703ce0d43

View File

@ -19,7 +19,7 @@ mkdir -p "$data_path/www"
mkdir -p "$data_path/conf" mkdir -p "$data_path/conf"
if [ ! -f "$data_path/conf/options-ssl-nginx.conf" && "$data_path/conf/ssl-dhparams.pem"]; then if [ ! -e "$data_path/conf/options-ssl-nginx.conf" ] && [ ! -e "$data_path/conf/ssl-dhparams.pem" ]; then
echo "### Downloading recommended TLS parameters ..." echo "### Downloading recommended TLS parameters ..."
curl -s https://raw.githubusercontent.com/certbot/certbot/master/certbot-nginx/certbot_nginx/options-ssl-nginx.conf > "$data_path/conf/options-ssl-nginx.conf" curl -s https://raw.githubusercontent.com/certbot/certbot/master/certbot-nginx/certbot_nginx/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/ssl-dhparams.pem > "$data_path/conf/ssl-dhparams.pem"
@ -58,7 +58,7 @@ esac
if [ $staging != "0" ]; then staging_arg="--staging"; fi if [ $staging != "0" ]; then staging_arg="--staging"; fi
for domain in "${domains[@]}"; do for domain in "${domains[@]}"; do
echo "### Deleting dummy certificate of $domain domain..." echo "### Deleting dummy certificate for $domain domain ..."
rm -rf "$data_path/conf/live/$domain" rm -rf "$data_path/conf/live/$domain"
echo "### Requesting Let's Encrypt certificate for $domain domain ..." echo "### Requesting Let's Encrypt certificate for $domain domain ..."