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:
@@ -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:
|
||||
|
||||
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user