From 341ae11626258e8c4cec79f0f594ab399b63dabc Mon Sep 17 00:00:00 2001 From: Philipp Date: Tue, 1 Jan 2019 22:06:23 +0100 Subject: [PATCH] Use || operator to check if *either* TLS parameter file is missing --- init-letsencrypt.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init-letsencrypt.sh b/init-letsencrypt.sh index 4729015..e59f65f 100644 --- a/init-letsencrypt.sh +++ b/init-letsencrypt.sh @@ -14,7 +14,7 @@ if [ -d "$data_path" ]; then fi -if [ ! -e "$data_path/conf/options-ssl-nginx.conf" ] && [ ! -e "$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 ..." mkdir -p "$data_path/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"