check-certificates: add symbol in notification

This commit is contained in:
Christian Hesse 2020-07-17 11:52:54 +02:00
parent b91edc9e39
commit 3e1746f43e
2 changed files with 4 additions and 2 deletions

View file

@ -16,6 +16,7 @@
:global LogPrintExit; :global LogPrintExit;
:global ParseKeyValueStore; :global ParseKeyValueStore;
:global SendNotification; :global SendNotification;
:global SymbolForNotification;
:global TimeIsSync; :global TimeIsSync;
:global UrlEncode; :global UrlEncode;
:global WaitForFile; :global WaitForFile;
@ -85,7 +86,7 @@
/ certificate set $CertNew name=($CertVal->"name"); / 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" . \ ("A certificate on " . $Identity . " has been renewed.\n\n" . \
"Name: " . ($CertVal->"name") . "\n" . \ "Name: " . ($CertVal->"name") . "\n" . \
"CommonName: " . ($CertNewVal->"common-name") . "\n" . \ "CommonName: " . ($CertNewVal->"common-name") . "\n" . \
@ -107,7 +108,7 @@
} else={ } else={
:local State [ $IfThenElse (($CertVal->"expired") = true) "expired" "is about to expire" ]; :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" . \ ("A certificate on " . $Identity . " " . $State . ".\n\n" . \
"Name: " . ($CertVal->"name") . "\n" . \ "Name: " . ($CertVal->"name") . "\n" . \
"CommonName: " . ($CertVal->"common-name") . "\n" . \ "CommonName: " . ($CertVal->"common-name") . "\n" . \

View file

@ -743,6 +743,7 @@
"floppy-disk"="\F0\9F\92\BE"; "floppy-disk"="\F0\9F\92\BE";
"high-voltage-sign"="\E2\9A\A1"; "high-voltage-sign"="\E2\9A\A1";
"incoming-envelope"="\F0\9F\93\A8"; "incoming-envelope"="\F0\9F\93\A8";
"lock-with-ink-pen"="\F0\9F\94\8F";
"pushpin"="\F0\9F\93\8C"; "pushpin"="\F0\9F\93\8C";
"sparkles"="\E2\9C\A8"; "sparkles"="\E2\9C\A8";
"warning-sign"="\E2\9A\A0"; "warning-sign"="\E2\9A\A0";