diff options
author | dwcjr <dwcjr@FreeBSD.org> | 2002-02-12 01:48:50 +0800 |
---|---|---|
committer | dwcjr <dwcjr@FreeBSD.org> | 2002-02-12 01:48:50 +0800 |
commit | 9f8538d75e6beb918d64ddd94768ed5e4fb9f3ec (patch) | |
tree | af873e79b63018276cb95a3f60f79cf8212973b7 /mail/postfix28/pkg-install | |
parent | 393b151c9e14368e270489acca463aab3c85addd (diff) | |
download | freebsd-ports-gnome-9f8538d75e6beb918d64ddd94768ed5e4fb9f3ec.tar.gz freebsd-ports-gnome-9f8538d75e6beb918d64ddd94768ed5e4fb9f3ec.tar.zst freebsd-ports-gnome-9f8538d75e6beb918d64ddd94768ed5e4fb9f3ec.zip |
Update to 1.1.3
Update to latest TLS
Give Vivek Khera Maintainership
Fix loss of config files during upgrade
PR: 34837
Submitted by: maintainer
Diffstat (limited to 'mail/postfix28/pkg-install')
-rw-r--r-- | mail/postfix28/pkg-install | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/mail/postfix28/pkg-install b/mail/postfix28/pkg-install index 2e4266564c2b..24bdf1d98728 100644 --- a/mail/postfix28/pkg-install +++ b/mail/postfix28/pkg-install @@ -83,12 +83,15 @@ if [ x"$2" = xPRE-INSTALL ]; then fi if [ x"$2" = xPOST-INSTALL ]; then - if [ ! -f ${PKG_PREFIX}/etc/postfix/main.cf ]; then - cp ${PKG_PREFIX}/etc/postfix/sample-main.cf ${PKG_PREFIX}/etc/postfix/main.cf - fi - if [ ! -f ${PKG_PREFIX}/etc/postfix/master.cf ]; then - cp ${PKG_PREFIX}/etc/postfix/sample-master.cf ${PKG_PREFIX}/etc/postfix/master.cf - fi + CONF1="main.cf master.cf access aliases canonical pcre_table \ + regexp_table relocated transport virtual" + + for file in $CONF1 + do + if [ ! -f ${PKG_PREFIX}/etc/postfix/$file ]; then + cp ${PKG_PREFIX}/etc/postfix/sample-$file ${PKG_PREFIX}/etc/postfix/$file + fi + done sh ${PKG_PREFIX}/etc/postfix/post-install tempdir=/tmp \ config_directory=${PKG_PREFIX}/etc/postfix \ |