mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-06-22 17:53:31 +02:00
check-certificates: use :onerror for outer block
This commit is contained in:
parent
009516dbd4
commit
e44a5384b7
1 changed files with 3 additions and 3 deletions
|
@ -13,7 +13,7 @@
|
||||||
:while ($GlobalFunctionsReady != true) do={ :delay 500ms; }
|
:while ($GlobalFunctionsReady != true) do={ :delay 500ms; }
|
||||||
|
|
||||||
:local ExitOK false;
|
:local ExitOK false;
|
||||||
:do {
|
:onerror Err {
|
||||||
:local ScriptName [ :jobname ];
|
:local ScriptName [ :jobname ];
|
||||||
|
|
||||||
:global CertRenewTime;
|
:global CertRenewTime;
|
||||||
|
@ -237,6 +237,6 @@
|
||||||
", it is invalid after " . ($CertVal->"invalid-after") . ".");
|
", it is invalid after " . ($CertVal->"invalid-after") . ".");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} on-error={
|
} do={
|
||||||
:global ExitError; $ExitError $ExitOK [ :jobname ];
|
:global ExitError; $ExitError $ExitOK [ :jobname ] $Err;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue