mirror of
https://github.com/mailcow/mailcow-dockerized.git
synced 2025-01-06 03:54:12 +02:00
Use entrypoint to sed some vars
This commit is contained in:
parent
9ce260fbe0
commit
d6e0c46b9a
@ -2,6 +2,10 @@
|
|||||||
|
|
||||||
trap "postfix stop" EXIT
|
trap "postfix stop" EXIT
|
||||||
|
|
||||||
|
sed -i "/^user/c\user = ${DBUSER}" /opt/postfix/conf/sql/*
|
||||||
|
sed -i "/^password/c\password = ${DBPASS}" /opt/postfix/conf/sql/*
|
||||||
|
sed -i "/^dbname/c\dbname = ${DBNAME}" /opt/postfix/conf/sql/*
|
||||||
|
|
||||||
postfix -c /opt/postfix/conf start
|
postfix -c /opt/postfix/conf start
|
||||||
|
|
||||||
sleep infinity
|
sleep infinity
|
||||||
|
Loading…
Reference in New Issue
Block a user