mirror of
https://github.com/mailcow/mailcow-dockerized.git
synced 2025-12-27 00:31:32 +00:00
Set SOGo related hosts from env var
This commit is contained in:
@@ -10,7 +10,7 @@ class BootstrapNginx(BootstrapBase):
|
||||
# wait for Hosts
|
||||
php_service = os.getenv("PHPFPMHOST") or "php-fpm-mailcow"
|
||||
rspamd_service = os.getenv("RSPAMDHOST") or "rspamd-mailcow"
|
||||
sogo_service = os.getenv("SOGOHOST") or os.getenv("IPV4_NETWORK", "172.22.1") + ".248"
|
||||
sogo_service = os.getenv("SOGOHOST")
|
||||
self.wait_for_host(php_service)
|
||||
if not self.isYes(os.getenv("SKIP_RSPAMD", False)):
|
||||
self.wait_for_host(rspamd_service)
|
||||
|
||||
@@ -17,7 +17,7 @@ class BootstrapSogo(BootstrapBase):
|
||||
self.connect_mysql()
|
||||
|
||||
# Wait until port is free
|
||||
while self.is_port_open("sogo-mailcow", 20000):
|
||||
while self.is_port_open(os.getenv("SOGO_HOST"), 20000):
|
||||
print("Port 20000 still in use — terminating sogod...")
|
||||
self.kill_proc("sogod")
|
||||
time.sleep(3)
|
||||
|
||||
Reference in New Issue
Block a user