Skip to content

Commit

Permalink
check-certificates: fix typo and syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
eworm-de committed Dec 4, 2023
1 parent e4b10d4 commit 9460749
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions check-certificates.rsc
Original file line number Diff line number Diff line change
Expand Up @@ -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]+\$") \
Expand All @@ -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; \
Expand Down

0 comments on commit 9460749

Please sign in to comment.