check-routeros-update: check for global config to be ready

This commit is contained in:
Christian Hesse 2025-05-06 14:08:37 +02:00
parent 78463f469b
commit 59c66de690

View file

@ -11,9 +11,9 @@
:local ExitOK false;
:onerror Err {
:global GlobalFunctionsReady;
:retry { :if ($GlobalFunctionsReady != true) \
do={ :error ("Global functions not ready."); }; } delay=500ms max=50;
:global GlobalConfigReady; :global GlobalFunctionsReady;
:retry { :if ($GlobalConfigReady != true || $GlobalFunctionsReady != true) \
do={ :error ("Global config and/or functions not ready."); }; } delay=500ms max=50;
:local ScriptName [ :jobname ];
:global Identity;