1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2026-03-25 19:17:22 +01:00
This commit is contained in:
captainwasabi
2023-12-22 09:52:07 -08:00
committed by GitHub

View File

@@ -554,6 +554,8 @@ def backup_set_custom(env, target, target_user, target_pass, min_age):
config["target_pass"] = target_pass
config["min_age_in_days"] = min_age
write_backup_config(env, config)
# Validate.
try:
if config["target"] not in ("off", "local"):
@@ -563,8 +565,6 @@ def backup_set_custom(env, target, target_user, target_pass, min_age):
except ValueError as e:
return str(e)
write_backup_config(env, config)
return "OK"
def get_backup_config(env, for_save=False, for_ui=False):