mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-08-17 08:12:13 +02:00
backup-upload: lock the script
This commit is contained in:
parent
fa851a7838
commit
1167347ec0
1 changed files with 2 additions and 0 deletions
|
@ -31,6 +31,7 @@
|
||||||
:global MkDir;
|
:global MkDir;
|
||||||
:global RandomDelay;
|
:global RandomDelay;
|
||||||
:global ScriptFromTerminal;
|
:global ScriptFromTerminal;
|
||||||
|
:global ScriptLock;
|
||||||
:global SendNotification2;
|
:global SendNotification2;
|
||||||
:global SymbolForNotification;
|
:global SymbolForNotification;
|
||||||
:global WaitForFile;
|
:global WaitForFile;
|
||||||
|
@ -41,6 +42,7 @@
|
||||||
$LogPrintExit2 error $0 ("Configured to send neither backup nor config export.") true;
|
$LogPrintExit2 error $0 ("Configured to send neither backup nor config export.") true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$ScriptLock $0;
|
||||||
$WaitFullyConnected;
|
$WaitFullyConnected;
|
||||||
|
|
||||||
:if ([ $ScriptFromTerminal $0 ] = false && $BackupRandomDelay > 0) do={
|
:if ([ $ScriptFromTerminal $0 ] = false && $BackupRandomDelay > 0) do={
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue