mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-18 22:54:00 +00:00
29 lines
816 B
Text
29 lines
816 B
Text
# arg 1: the new package version
|
|
post_install() {
|
|
if [ -z "`grep '^rbldns::' /etc/group`" ]; then
|
|
groupadd -g 58 rbldns >& /dev/null
|
|
fi
|
|
if [ -z "`grep '^rbldns:' /etc/passwd`" ]; then
|
|
useradd -u 58 -d /var/lib/rbldns -g rbldns -s /bin/false rbldns
|
|
fi
|
|
if [ -z "`grep '^rbldnszones::' /etc/group`" ]; then
|
|
groupadd -g 59 rbldnszones >& /dev/null
|
|
fi
|
|
if [ -z "`grep '^rbldnszones:' /etc/passwd`" ]; then
|
|
useradd -u 59 -d /var/lib/rbldns -g rbldnszones -s /bin/false rbldnszones
|
|
fi
|
|
}
|
|
|
|
# arg 1: the new package version
|
|
# arg 2: the old package version
|
|
post_upgrade() {
|
|
post_install $1
|
|
}
|
|
|
|
# arg 1: the old package version
|
|
pre_remove() {
|
|
userdel rbldns &> /dev/null
|
|
groupdel rbldns &> /dev/null
|
|
userdel rbldnszones &> /dev/null
|
|
groupdel rbldnszones &> /dev/null
|
|
}
|