From ccf60c7017b738d94b15b8d74b8808b77e7d5f35 Mon Sep 17 00:00:00 2001 From: David Duque Date: Sat, 11 Jul 2020 09:16:32 +0100 Subject: [PATCH] Backups: User-initiated and cron-initiated jobs will have the same lockname So that some poor timing (initiating a backup when there's a cron-initiated backup) doesn't screw everything up. --- management/backup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/management/backup.py b/management/backup.py index c9f7d80a..bfae23b3 100755 --- a/management/backup.py +++ b/management/backup.py @@ -215,7 +215,7 @@ def perform_backup(full_backup, user_initiated=False): # Create an global exclusive lock so that the backup script # cannot be run more than one. - lock = Lock(die=(not user_initiated)) + lock = Lock(name="mailinabox_backup_daemon", die=(not user_initiated)) if user_initiated: # God forgive me for what I'm about to do try: