From 875465aab7de63e92be46349d39d8a4c42a2bafa Mon Sep 17 00:00:00 2001 From: Christoph Date: Wed, 27 May 2020 10:04:21 +0200 Subject: [PATCH] check_cert_for_prosody.sh: no warning if running as cron and all is fine.. --- check_cert_for_prosody.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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