1
0
mirror of https://github.com/mailcow/mailcow-dockerized.git synced 2026-01-06 21:49:17 +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

@@ -527,9 +527,10 @@ class BootstrapBase:
"user": self.db_config['user'],
"password": self.db_config['password'],
"database": self.db_config['database'],
"unix_socket": socket or self.db_config['unix_socket'],
'connection_timeout': self.db_config['connection_timeout']
}
if self.db_config['unix_socket']:
config["unix_socket"] = socket or self.db_config['unix_socket']
while True:
try:

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)