1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2024-12-25 07:47:05 +00:00
This commit is contained in:
github@kiekerjan.isdronken.nl 2021-07-24 21:19:01 +02:00
parent efdd1f2442
commit 75390e11fd

View File

@ -591,8 +591,9 @@ def get_backup_root(env):
# If BACKUP_ROOT exists, overwrite backup_root variable
if backup_root_env in env:
if not env[backup_root_env] && os.path.isdir(env[backup_root_env]):
backup_root = env[backup_root_env]
tmp = env[backup_root_env]
if not tmp && os.path.isdir(tmp):
backup_root = tmp
backup_root = os.path.join(backup_root, 'backup')