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:
parent
20499a4709
commit
4a17f71e88
@ -2526,16 +2526,18 @@ while IFS=' ' read -r site_server_name rest ; do
|
|||||||
|
|
||||||
echononl " Adjust entries for \"\${site_server_name}\" .."
|
echononl " Adjust entries for \"\${site_server_name}\" .."
|
||||||
if [[ \${#vhost_file_arr[@]} -eq 0 ]]; then
|
if [[ \${#vhost_file_arr[@]} -eq 0 ]]; then
|
||||||
echo_failed
|
echo_skipped
|
||||||
warn "No vhost configuration found for \$site_server_name"
|
warn "No vhost configuration found for \$site_server_name"
|
||||||
else
|
else
|
||||||
_cert_dir=\${DH_BASE_DIR}/certs/\${site_server_name}
|
_cert_dir=\${DH_BASE_DIR}/certs/\${site_server_name}
|
||||||
if [[ ! -h "\${_cert_dir}/fullchain.pem" ]] ; then
|
if [[ ! -h "\${_cert_dir}/fullchain.pem" ]] ; then
|
||||||
echo_skipped
|
echo_skipped
|
||||||
|
warn "No certificate found for \$site_server_name"
|
||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
if [[ ! -h "\${_cert_dir}/privkey.pem" ]] ; then
|
if [[ ! -h "\${_cert_dir}/privkey.pem" ]] ; then
|
||||||
echo_skipped
|
echo_skipped
|
||||||
|
warn "No private key found for \$site_server_name"
|
||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
failed=false
|
failed=false
|
||||||
|
Loading…
Reference in New Issue
Block a user