Skip to content

Commit 97274c4

Browse files
committed
added site url
1 parent e9af55a commit 97274c4

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

imageroot/actions/configure-module/10configure_environment_vars

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,14 @@ import agent
1212
# Try to parse the stdin as JSON.
1313
# If parsing fails, output everything to stderr
1414
data = json.load(sys.stdin)
15+
host = data.get("host")
1516
mautic_env = {
1617
"MAUTIC_ADMIN_FIRSTNAME": data.get("admin_firstname", ""),
1718
"MAUTIC_ADMIN_LASTNAME": data.get("admin_lastname", ""),
1819
"MAUTIC_ADMIN_USERNAME": data.get("admin_username", ""),
1920
"MAUTIC_ADMIN_EMAIL": data.get("admin_email", ""),
2021
"MAUTIC_ADMIN_PASSWORD": data.get("admin_password", ""),
22+
"SITE_URL": f"https://{host}",
2123
}
2224
agent.write_envfile("mautic.env", mautic_env)
2325

0 commit comments

Comments
 (0)