mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2026-03-05 05:29:37 +00:00
check-certificates: fail if global functions do not become ready
Co-authored-by: Ilya Kulakov <kulakov.ilya@gmail.com>
This commit is contained in:
parent
75f88fc38c
commit
e0cb5b07a3
1 changed files with 2 additions and 1 deletions
|
|
@ -10,7 +10,8 @@
|
|||
# https://rsc.eworm.de/doc/check-certificates.md
|
||||
|
||||
:global GlobalFunctionsReady;
|
||||
:while ($GlobalFunctionsReady != true) do={ :delay 500ms; }
|
||||
:onerror e { :retry { :if ($GlobalFunctionsReady != true) \
|
||||
do={ :error "Global functions not ready."; }; } delay=500ms max=20; } do={ :log error $e; };
|
||||
|
||||
:local ExitOK false;
|
||||
:do {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue