2016-12-10 03:39:02 +08:00
|
|
|
#!/bin/bash
|
|
|
|
|
2016-12-13 14:58:53 +08:00
|
|
|
trap "postfix stop" EXIT
|
2016-12-10 03:39:02 +08:00
|
|
|
|
2016-12-15 17:07:46 +08:00
|
|
|
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/*
|
|
|
|
|
2016-12-10 03:39:02 +08:00
|
|
|
postfix -c /opt/postfix/conf start
|
|
|
|
|
2016-12-11 04:49:41 +08:00
|
|
|
sleep infinity
|