global-functions: $ScriptLock: do not exit from global function

This commit is contained in:
Christian Hesse 2024-03-05 16:12:36 +01:00
parent 56e97dd60c
commit 1e8918fdaa
57 changed files with 172 additions and 61 deletions

View file

@ -127,7 +127,9 @@
[ $FormatLine "Expires in" [ $IfThenElse (($CertVal->"expired") = true) "expired" [ $FormatExpire ($CertVal->"expires-after") ] ] ]);
}
$ScriptLock $ScriptName;
:if ([ $ScriptLock $ScriptName ] = false) do={
:return false;
}
$WaitFullyConnected;
:foreach Cert in=[ /certificate/find where !revoked !ca !scep-url expires-after<$CertRenewTime ] do={