From 67ff97b27dee12ff98b4e9c2df3b002e50ae96ce Mon Sep 17 00:00:00 2001 From: Asaf Gartner Date: Sat, 4 Sep 2021 21:48:47 +0300 Subject: [PATCH] Try another method for crash mailing --- server/adminmailer.sh | 4 ++++ server/caddy.service | 2 +- server/cinera.service | 2 +- server/hmn.service | 2 +- 4 files changed, 7 insertions(+), 3 deletions(-) diff --git a/server/adminmailer.sh b/server/adminmailer.sh index f2a9048f..f4a6e8c1 100755 --- a/server/adminmailer.sh +++ b/server/adminmailer.sh @@ -1,5 +1,9 @@ #!/bin/bash +if [ $SERVICE_RESULT == "success" ]; then + exit +fi + /home/hmn/hmn/adminmailer/adminmailer "[$1] Status changed" <