diff options
author | Christian Hesse <mail@eworm.de> | 2023-06-12 07:59:54 +0200 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2023-06-12 08:17:36 +0200 |
commit | 229e1169990d68090dd8f4b0dcd83c3f3afd1c46 (patch) | |
tree | 7236fb3dd0e102346442a93cc5ae3ff898114ae8 | |
parent | 4aaa144472a1b880398b770b6b529f11e6c9917e (diff) |
backup-email: lock the script
-rw-r--r-- | backup-email.rsc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/backup-email.rsc b/backup-email.rsc index e8837a0..5eb4fcc 100644 --- a/backup-email.rsc +++ b/backup-email.rsc @@ -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={ |