Skip to content

Commit

Permalink
Add domain binding and update environment variables
Browse files Browse the repository at this point in the history
  • Loading branch information
stephdl committed Jan 16, 2024
1 parent d94d28a commit ba008a8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion imageroot/actions/configure-module/20config
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,8 @@ if "mail_module" in data and "mail_domain" in data:
user_domain = agent.ldapproxy.Ldapproxy().get_domain(user_domain_name) or {}

domain_setup(mail_domain, user_domain)

# Bind the new domain, overriding previous values (unbind)
agent.bind_user_domains([user_domain_name])
agent.set_env("MAIL_MODULE", mail_module)
agent.set_env("MAIL_DOMAIN", mail_domain)
agent.set_env("RESTART_WEBAPP", "1")
Expand Down

0 comments on commit ba008a8

Please sign in to comment.