diff options
author | Christian Hesse <mail@eworm.de> | 2023-12-04 12:01:52 +0100 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2023-12-04 12:15:10 +0100 |
commit | 94607496ae07118e5bea8da728719c4c138e425f (patch) | |
tree | 94fedad79effed74afc8835f06b17207f32e3c4a /check-certificates.rsc | |
parent | e4b10d4b76b7ccd22695ba5074857cdc542014ea (diff) |
check-certificates: fix typo and syntax
Diffstat (limited to 'check-certificates.rsc')
-rw-r--r-- | check-certificates.rsc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/check-certificates.rsc b/check-certificates.rsc index 3410d4d..e9b5de1 100644 --- a/check-certificates.rsc +++ b/check-certificates.rsc @@ -126,7 +126,7 @@ $WaitFullyConnected; :if ($CertVal->"fingerprint" != [ /certificate/get $Cert fingerprint ]) do={ $LogPrintExit2 debug $0 ("Certificate '" . $CertVal->"name" . "' was updated in place.") false; :set CertVal [ /certificate/get $Cert ]; - } else { + } else={ $LogPrintExit2 debug $0 ("Certificate '" . $CertVal->"name" . "' was not updated, but replaced.") false; :local CertNew [ /certificate/find where name~("^" . [ $EscapeForRegEx [ $UrlEncode $LastName ] ] . "\\.(p12|pem)_[0-9]+\$") \ @@ -153,7 +153,7 @@ $WaitFullyConnected; /certificate/remove $Cert; /certificate/set $CertNew name=($CertVal->"name"); :set CertNewVal; - :set CertVal [ /certificate/get $CertNew ];; + :set CertVal [ /certificate/get $CertNew ]; } $SendNotification2 ({ origin=$0; silent=true; \ |