summaryrefslogtreecommitdiff
path: root/user/postfix/honour-config-directory.patch
diff options
context:
space:
mode:
Diffstat (limited to 'user/postfix/honour-config-directory.patch')
-rw-r--r--user/postfix/honour-config-directory.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/user/postfix/honour-config-directory.patch b/user/postfix/honour-config-directory.patch
new file mode 100644
index 000000000..a32c588ee
--- /dev/null
+++ b/user/postfix/honour-config-directory.patch
@@ -0,0 +1,11 @@
+--- postfix-3.3.2/postfix-install
++++ postfix-3.3.2/postfix-install
+@@ -832,7 +832,7 @@
+ # the wrong place when Postfix is being upgraded.
+
+ case "$mail_version" in
+-"") mail_version="`bin/postconf -dhx mail_version`" || exit 1
++"") mail_version="`bin/postconf -c $CONFIG_DIRECTORY -dhx mail_version`" || exit 1
+ esac
+
+ # Undo MAIL_VERSION expansion at the end of a parameter value. If