mirror of
https://github.com/mailcow/mailcow-dockerized.git
synced 2026-07-18 00:55:01 +00:00
Check Postfix config before spawning Postfix procs
This commit is contained in:
parent
33a0357634
commit
1da550b499
1 changed files with 8 additions and 3 deletions
|
|
@ -6,6 +6,11 @@ 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
|
||||
postconf -c /opt/postfix/conf
|
||||
if [[ $? != 0 ]]; then
|
||||
echo "Postfix configuration error, refusing to start."
|
||||
exit 1
|
||||
else
|
||||
postfix -c /opt/postfix/conf start
|
||||
sleep infinity
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue