Use entrypoint to sed some vars

master
andryyy 2016-12-15 10:07:46 +01:00
parent 9ce260fbe0
commit d6e0c46b9a
1 changed files with 4 additions and 0 deletions

View File

@ -2,6 +2,10 @@
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
sleep infinity