mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2025-06-21 10:15:39 +02:00
packages-update: fail if global functions do not become ready
This commit is contained in:
parent
ff812dd192
commit
4358dabb19
1 changed files with 3 additions and 3 deletions
|
@ -9,11 +9,11 @@
|
||||||
# download packages and reboot for installation
|
# download packages and reboot for installation
|
||||||
# https://rsc.eworm.de/doc/packages-update.md
|
# https://rsc.eworm.de/doc/packages-update.md
|
||||||
|
|
||||||
:global GlobalFunctionsReady;
|
|
||||||
:while ($GlobalFunctionsReady != true) do={ :delay 500ms; }
|
|
||||||
|
|
||||||
:local ExitOK false;
|
:local ExitOK false;
|
||||||
:onerror Err {
|
:onerror Err {
|
||||||
|
:global GlobalFunctionsReady;
|
||||||
|
:retry { :if ($GlobalFunctionsReady != true) \
|
||||||
|
do={ :error ("Global functions not ready."); }; } delay=500ms max=50;
|
||||||
:local ScriptName [ :jobname ];
|
:local ScriptName [ :jobname ];
|
||||||
|
|
||||||
:global BackupRandomDelay;
|
:global BackupRandomDelay;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue