backup-cloud: lock the script

This commit is contained in:
Christian Hesse 2023-06-12 07:59:34 +02:00
parent 2f399f2a48
commit 4aaa144472

View file

@ -21,10 +21,12 @@
:global LogPrintExit2; :global LogPrintExit2;
:global RandomDelay; :global RandomDelay;
:global ScriptFromTerminal; :global ScriptFromTerminal;
:global ScriptLock;
:global SendNotification2; :global SendNotification2;
:global SymbolForNotification; :global SymbolForNotification;
:global WaitFullyConnected; :global WaitFullyConnected;
$ScriptLock $0;
$WaitFullyConnected; $WaitFullyConnected;
:if ([ $ScriptFromTerminal $0 ] = false && $BackupRandomDelay > 0) do={ :if ([ $ScriptFromTerminal $0 ] = false && $BackupRandomDelay > 0) do={