aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2021-04-27 21:58:35 +0200
committerGravatar Christian Hesse <mail@eworm.de>2021-04-28 13:58:37 +0200
commitebd3dbedcbe5c71dde258a5e05a531ad8c70983f (patch)
tree00009628a67312eb245ed0a4db05285c2eb5902b
parentc64082388195fc81d0d43e8d360d64663c1d70a9 (diff)
check-certificates: pass origin to $SendNotification2
-rw-r--r--check-certificates6
1 files changed, 4 insertions, 2 deletions
diff --git a/check-certificates b/check-certificates
index ff93046..a052930 100644
--- a/check-certificates
+++ b/check-certificates
@@ -95,7 +95,8 @@ $WaitFullyConnected;
/ certificate set $CertNew name=($CertVal->"name");
}
- $SendNotification2 ({ subject=([ $SymbolForNotification "lock-with-ink-pen" ] . "Certificate renewed"); \
+ $SendNotification2 ({ origin=$0; \
+ subject=([ $SymbolForNotification "lock-with-ink-pen" ] . "Certificate renewed"); \
message=("A certificate on " . $Identity . " has been renewed.\n\n" . \
"Name: " . ($CertVal->"name") . "\n" . \
"CommonName: " . ($CertNewVal->"common-name") . "\n" . \
@@ -118,7 +119,8 @@ $WaitFullyConnected;
} else={
:local State [ $IfThenElse (($CertVal->"expired") = true) "expired" "is about to expire" ];
- $SendNotification2 ({ subject=([ $SymbolForNotification "warning-sign" ] . "Certificate warning!"); \
+ $SendNotification2 ({ origin=$0; \
+ subject=([ $SymbolForNotification "warning-sign" ] . "Certificate warning!"); \
message=("A certificate on " . $Identity . " " . $State . ".\n\n" . \
"Name: " . ($CertVal->"name") . "\n" . \
"CommonName: " . ($CertVal->"common-name") . "\n" . \