aboutsummaryrefslogtreecommitdiffstats
path: root/testing/postfix/postfix-pgsql.post-install
diff options
context:
space:
mode:
authorMichael Mason <ms13sp@gmail.com>2009-06-01 18:45:57 +0000
committerMichael Mason <ms13sp@gmail.com>2009-06-01 18:45:57 +0000
commitb62d22a2a0f06801054ddc9b48e464befde29a13 (patch)
tree371e444883c6bdc9e1f96f8ba76c9627430949eb /testing/postfix/postfix-pgsql.post-install
parentb964c9056321e718f8fee22ccfccd2dd66a14b2f (diff)
parent8242328d69660f91932066160a606187ad81f141 (diff)
downloadaports-b62d22a2a0f06801054ddc9b48e464befde29a13.tar.bz2
aports-b62d22a2a0f06801054ddc9b48e464befde29a13.tar.xz
Merge branch 'master' of git://git.alpinelinux.org/aports
Diffstat (limited to 'testing/postfix/postfix-pgsql.post-install')
-rw-r--r--testing/postfix/postfix-pgsql.post-install19
1 files changed, 19 insertions, 0 deletions
diff --git a/testing/postfix/postfix-pgsql.post-install b/testing/postfix/postfix-pgsql.post-install
new file mode 100644
index 0000000000..b8d23833b6
--- /dev/null
+++ b/testing/postfix/postfix-pgsql.post-install
@@ -0,0 +1,19 @@
+#!/bin/sh
+
+# update the dynamicmaps.cf
+conf=/etc/postfix/dynamicmaps.cf
+
+sed -i -e '/\#\# AUTO BEGIN/,/\#\# AUTO END/d' $conf
+
+(
+echo '## AUTO BEGIN ##'
+if cd /usr/lib/postfix/; then
+ for i in *.so; do
+ m=${i#dict_}
+ m=${m%.so}
+ echo -e "$m\t/usr/lib/postfix/$i\tdict_${m}_open"
+ done
+fi
+
+echo '## AUTO END ##'
+) >> $conf