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.
This commit is contained in:
Christoph 2016-11-21 19:35:22 +01:00
parent 20499a4709
commit 4a17f71e88

View File

@ -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