diff --git a/check_cert_for_prosody.sh b/check_cert_for_prosody.sh index d88209e..e7e979b 100755 --- a/check_cert_for_prosody.sh +++ b/check_cert_for_prosody.sh @@ -252,7 +252,9 @@ if [[ -f "$(dirname "$cert_installed")/auth.$(basename "$cert_installed")" ]] \ auth_domain_present=true else auth_domain_present=false - warn "no cert/key for auth.${service_domain} present" + if $terminal ; then + warn "no cert/key for auth.${service_domain} present" + fi fi