diff options
author | Christian Hesse <mail@eworm.de> | 2020-07-17 11:52:54 +0200 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2020-07-17 11:52:54 +0200 |
commit | 3e1746f43e624ebfa9e10fc46ab9d170956612cc (patch) | |
tree | fd4567b2d960e8b3473a146dc1a5083d0379a717 /check-certificates | |
parent | b91edc9e3993eb65e8bc07f8f7f35a1995ffae66 (diff) |
check-certificates: add symbol in notification
Diffstat (limited to 'check-certificates')
-rw-r--r-- | check-certificates | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/check-certificates b/check-certificates index 1402e49..5dfb596 100644 --- a/check-certificates +++ b/check-certificates @@ -16,6 +16,7 @@ :global LogPrintExit; :global ParseKeyValueStore; :global SendNotification; +:global SymbolForNotification; :global TimeIsSync; :global UrlEncode; :global WaitForFile; @@ -85,7 +86,7 @@ / certificate set $CertNew name=($CertVal->"name"); } - $SendNotification ("Certificate renewed") \ + $SendNotification ([ $SymbolForNotification "lock-with-ink-pen" ] . "Certificate renewed") \ ("A certificate on " . $Identity . " has been renewed.\n\n" . \ "Name: " . ($CertVal->"name") . "\n" . \ "CommonName: " . ($CertNewVal->"common-name") . "\n" . \ @@ -107,7 +108,7 @@ } else={ :local State [ $IfThenElse (($CertVal->"expired") = true) "expired" "is about to expire" ]; - $SendNotification ("Certificate warning!") \ + $SendNotification ([ $SymbolForNotification "warning-sign" ] . "Certificate warning!") \ ("A certificate on " . $Identity . " " . $State . ".\n\n" . \ "Name: " . ($CertVal->"name") . "\n" . \ "CommonName: " . ($CertVal->"common-name") . "\n" . \ |