Commit a3c9b675 authored by Ram-Z's avatar Ram-Z

postfix: fix .install file

parent 96f24d0e
pkgname=postfix
pkgver=3.1.0
pkgrel=1
pkgrel=2
pkgdesc='Fast, easy to administer, secure mail server'
url='http://www.postfix.org/'
arch=('x86_64')
......
post_upgrade() {
/usr/lib/postfix/post-install daemon_directory=/usr/lib/postfix 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
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
true
}
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
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
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment