mirror of
https://github.com/mailcow/mailcow-dockerized.git
synced 2025-01-18 04:59:16 +02:00
Merge pull request #5372 from Habetdin:staging
[Postfix] fix extra.cf updating
This commit is contained in:
commit
437534556e
@ -486,7 +486,7 @@ fi
|
|||||||
# Append user overrides
|
# Append user overrides
|
||||||
echo -e "\n# User Overrides" >> /opt/postfix/conf/main.cf
|
echo -e "\n# User Overrides" >> /opt/postfix/conf/main.cf
|
||||||
touch /opt/postfix/conf/extra.cf
|
touch /opt/postfix/conf/extra.cf
|
||||||
sed -i '/myhostname/d' /opt/postfix/conf/extra.cf
|
sed -i '/\$myhostname/! { /myhostname/d }' /opt/postfix/conf/extra.cf
|
||||||
echo -e "myhostname = ${MAILCOW_HOSTNAME}\n$(cat /opt/postfix/conf/extra.cf)" > /opt/postfix/conf/extra.cf
|
echo -e "myhostname = ${MAILCOW_HOSTNAME}\n$(cat /opt/postfix/conf/extra.cf)" > /opt/postfix/conf/extra.cf
|
||||||
cat /opt/postfix/conf/extra.cf >> /opt/postfix/conf/main.cf
|
cat /opt/postfix/conf/extra.cf >> /opt/postfix/conf/main.cf
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user