From a703ce0d43243645288d4244b3c38fd70775df94 Mon Sep 17 00:00:00 2001 From: Yaroslav Date: Wed, 28 Nov 2018 20:11:05 +0400 Subject: [PATCH] Fixes are on the way --- certbot.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/certbot.sh b/certbot.sh index e365c84..7d3366c 100644 --- a/certbot.sh +++ b/certbot.sh @@ -19,7 +19,7 @@ mkdir -p "$data_path/www" 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 ..." 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" @@ -58,7 +58,7 @@ esac if [ $staging != "0" ]; then staging_arg="--staging"; fi 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" echo "### Requesting Let's Encrypt certificate for $domain domain ..."