Remove duplicate hostnames with diabolical hack

This commit is contained in:
decentral1se 2021-05-21 20:58:41 +02:00
parent fca03b471e
commit 2f27f298f9
Signed by: decentral1se
GPG Key ID: 92DAD76BD9567B8A
1 changed files with 5 additions and 0 deletions

View File

@ -34,6 +34,11 @@ file_env "MAILMAN_REST_PASSWORD"
export DATABASE_URL="postgres://${DATABASE_USER}:${DATABASE_PASSWORD}@${DATABASE_HOST}/${DATABASE_NAME}"
# Diabolical hack to remove duplicate hostnames due to Docker shared networks
# See https://git.autonomic.zone/coop-cloud/mailu/src/branch/main/compose.yml for more
sed "/192.168/d" /etc/hosts > /etc/hosts-single-hostname
cat /etc/hosts-single-hostname > /etc/hosts
# --- upstream entrypoint below ---
function wait_for_postgres () {