mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2024-12-25 07:47:05 +00:00
cleanup
This commit is contained in:
parent
efdd1f2442
commit
75390e11fd
@ -591,8 +591,9 @@ def get_backup_root(env):
|
|||||||
|
|
||||||
# If BACKUP_ROOT exists, overwrite backup_root variable
|
# If BACKUP_ROOT exists, overwrite backup_root variable
|
||||||
if backup_root_env in env:
|
if backup_root_env in env:
|
||||||
if not env[backup_root_env] && os.path.isdir(env[backup_root_env]):
|
tmp = env[backup_root_env]
|
||||||
backup_root = env[backup_root_env]
|
if not tmp && os.path.isdir(tmp):
|
||||||
|
backup_root = tmp
|
||||||
|
|
||||||
backup_root = os.path.join(backup_root, 'backup')
|
backup_root = os.path.join(backup_root, 'backup')
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user