mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2024-12-24 07:37:04 +00:00
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.
This commit is contained in:
parent
79e2398d71
commit
ccf60c7017
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user