1
0
mirror of https://github.com/mailcow/mailcow-dockerized.git synced 2025-12-19 21:01:31 +00:00

Set HOST env vars

This commit is contained in:
FreddleSpl0it
2025-06-02 15:54:16 +02:00
parent 4cc463a728
commit 8d211ea767
5 changed files with 41 additions and 27 deletions

View File

@@ -22,11 +22,8 @@ class BootstrapPostfix(BootstrapBase):
lstrip_blocks=True,
trim_blocks=True
)
extra_config_path = Path("/opt/postfix/conf/extra.cf")
extra_config = extra_config_path.read_text() if extra_config_path.exists() else ""
extra_vars = {
"VALID_CERT_DIRS": self.get_valid_cert_dirs(),
"EXTRA_CF": extra_config
"VALID_CERT_DIRS": self.get_valid_cert_dirs()
}
self.env_vars = self.prepare_template_vars('/service_config/overwrites.json', extra_vars)