mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2024-12-25 07:47:05 +00:00
Booleans are passed as strings
This commit is contained in:
parent
6d8e2a5bb9
commit
0e583b9e4f
@ -540,9 +540,9 @@ def smtp_relay_set():
|
|||||||
# Write on Postfix config
|
# Write on Postfix config
|
||||||
# Write on daemon env
|
# Write on daemon env
|
||||||
config["SMTP_RELAY_ENABLED"] = newconf.get("enabled")
|
config["SMTP_RELAY_ENABLED"] = newconf.get("enabled")
|
||||||
config["SMTP_RELAY_HOST"] = newconf.get("host")
|
config["SMTP_RELAY_HOST"] = (newconf.get("host") == "true")
|
||||||
config["SMTP_RELAY_AUTH"] = newconf.get("auth_enabled")
|
config["SMTP_RELAY_AUTH"] = newconf.get("auth_enabled")
|
||||||
config["SMTP_RELAY_USER"] = newconf.get("user")
|
config["SMTP_RELAY_USER"] = (newconf.get("user") == "true")
|
||||||
utils.write_settings(config, env)
|
utils.write_settings(config, env)
|
||||||
# Restart Postfix
|
# Restart Postfix
|
||||||
return utils.shell("check_output", ["/usr/bin/systemctl", "restart", "postfix"], capture_stderr=True)
|
return utils.shell("check_output", ["/usr/bin/systemctl", "restart", "postfix"], capture_stderr=True)
|
||||||
|
Loading…
Reference in New Issue
Block a user