From 4a17f71e886d088896f7d9a618d850ac6704be38 Mon Sep 17 00:00:00 2001 From: Christoph Kuchenbuch Date: Mon, 21 Nov 2016 19:35:22 +0100 Subject: [PATCH] change output from failed to skipped, if no vhost configuration was found for a listed (domains.txt) certificate. add warning if no certificate/key found for a listed (domains.txt) certificate. --- install_dehydrated.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/install_dehydrated.sh b/install_dehydrated.sh index 873d81e..be1ff6f 100755 --- a/install_dehydrated.sh +++ b/install_dehydrated.sh @@ -2526,16 +2526,18 @@ while IFS=' ' read -r site_server_name rest ; do echononl " Adjust entries for \"\${site_server_name}\" .." if [[ \${#vhost_file_arr[@]} -eq 0 ]]; then - echo_failed + echo_skipped warn "No vhost configuration found for \$site_server_name" else _cert_dir=\${DH_BASE_DIR}/certs/\${site_server_name} if [[ ! -h "\${_cert_dir}/fullchain.pem" ]] ; then echo_skipped + warn "No certificate found for \$site_server_name" continue fi if [[ ! -h "\${_cert_dir}/privkey.pem" ]] ; then echo_skipped + warn "No private key found for \$site_server_name" continue fi failed=false