瀏覽代碼

Fix for fix

I did not paid attention to the "User overrides" sed/q
Sébastien RICCIO 2 年之前
父節點
當前提交
7cda9f063f
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      data/Dockerfiles/postfix/postfix.sh

+ 3 - 1
data/Dockerfiles/postfix/postfix.sh

@@ -435,11 +435,13 @@ EOF
   fi
 fi
 
+sed -i '/User overrides/q' /opt/postfix/conf/main.cf
+
 # Append postscreen dnsbl sites to main.cf
 cat /opt/postfix/conf/dns_blocklists.cf >> /opt/postfix/conf/main.cf
 cat /tmp/spamhaus.cf >> /opt/postfix/conf/main.cf
 
-sed -i '/User overrides/q' /opt/postfix/conf/main.cf
+# Append user overrides
 echo >> /opt/postfix/conf/main.cf
 touch /opt/postfix/conf/extra.cf
 sed -i '/myhostname/d' /opt/postfix/conf/extra.cf