mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2024-12-25 07:47:05 +00:00
Merge branch 'master' of https://github.com/kiekerjan/mailinabox
This commit is contained in:
commit
18d18366e3
@ -297,7 +297,7 @@ def perform_backup(full_backup):
|
|||||||
pre_script = os.path.join(backup_root, 'before-backup')
|
pre_script = os.path.join(backup_root, 'before-backup')
|
||||||
if os.path.exists(pre_script):
|
if os.path.exists(pre_script):
|
||||||
shell('check_call',
|
shell('check_call',
|
||||||
['su', env['STORAGE_USER'], '-c', pre_script, config["target"]],
|
['su', env['STORAGE_USER'], '--login', '-c', pre_script, config["target"]],
|
||||||
env=env)
|
env=env)
|
||||||
|
|
||||||
# Run a backup of STORAGE_ROOT (but excluding the backups themselves!).
|
# Run a backup of STORAGE_ROOT (but excluding the backups themselves!).
|
||||||
@ -369,8 +369,8 @@ def perform_backup(full_backup):
|
|||||||
post_script = os.path.join(backup_root, 'after-backup')
|
post_script = os.path.join(backup_root, 'after-backup')
|
||||||
if os.path.exists(post_script):
|
if os.path.exists(post_script):
|
||||||
shell('check_call',
|
shell('check_call',
|
||||||
['su', env['STORAGE_USER'], '-c', post_script, config["target"]],
|
['su', env['STORAGE_USER'], '--login', '-c', post_script, config["target"]],
|
||||||
env=env)
|
env=env, trap=True)
|
||||||
|
|
||||||
def run_duplicity_verification():
|
def run_duplicity_verification():
|
||||||
env = load_environment()
|
env = load_environment()
|
||||||
|
Loading…
Reference in New Issue
Block a user