backup-email: lock the script

This commit is contained in:
Christian Hesse 2023-06-12 07:59:54 +02:00
parent 4aaa144472
commit 229e116999

View file

@ -27,6 +27,7 @@
:global MkDir;
:global RandomDelay;
:global ScriptFromTerminal;
:global ScriptLock;
:global SendEMail2;
:global SymbolForNotification;
:global WaitForFile;
@ -41,6 +42,7 @@
$LogPrintExit2 error $0 ("Configured to send neither backup nor config export.") true;
}
$ScriptLock $0;
$WaitFullyConnected;
:if ([ $ScriptFromTerminal $0 ] = false && $BackupRandomDelay > 0) do={