summaryrefslogtreecommitdiffstats
path: root/abs/extra/postfix/install
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2013-09-10 17:04:33 (GMT)
committerBritney Fransen <brfransen@gmail.com>2013-09-10 17:04:33 (GMT)
commit26e580bd850bbbfc2b39177ee272ab052c012b49 (patch)
tree8c59a873b2a3e9335d7165888a99402d2412ac00 /abs/extra/postfix/install
parent0f9b73710a34526c1553b08cdb2cab5fdaf58b7e (diff)
downloadlinhes_pkgbuild-26e580bd850bbbfc2b39177ee272ab052c012b49.zip
linhes_pkgbuild-26e580bd850bbbfc2b39177ee272ab052c012b49.tar.gz
linhes_pkgbuild-26e580bd850bbbfc2b39177ee272ab052c012b49.tar.bz2
postfix: readd for R8 and update to 2.10.2. refs #922
Diffstat (limited to 'abs/extra/postfix/install')
-rw-r--r--abs/extra/postfix/install18
1 files changed, 18 insertions, 0 deletions
diff --git a/abs/extra/postfix/install b/abs/extra/postfix/install
new file mode 100644
index 0000000..c7e06b0
--- /dev/null
+++ b/abs/extra/postfix/install
@@ -0,0 +1,18 @@
+post_upgrade() {
+ /usr/lib/postfix/post-install daemon_directory=/usr/lib/postfix command_directory=/usr/bin upgrade-package
+ chown postfix var/lib/postfix
+}
+
+post_install() {
+ getent group postdrop &>/dev/null || groupadd -g 75 postdrop >/dev/null
+ getent group postfix &>/dev/null || groupadd -g 73 postfix >/dev/null
+ getent passwd postfix &>/dev/null || useradd -u 73 -d /var/spool/postfix -g postfix -s /bin/false postfix >/dev/null
+ post_upgrade
+}
+
+pre_remove() {
+ getent passwd postfix &>/dev/null && userdel postfix >/dev/null
+ getent group postfix &>/dev/null && groupdel postfix >/dev/null
+ getent group postdrop &>/dev/null && groupdel postdrop >/dev/null
+ true
+}