PKGBUILDs/extra/clamav/clamav.install
2009-10-09 21:23:22 -05:00

22 lines
360 B
Text

post_install() {
if [ -z "`getent group clamav`" ]; then
groupadd -g 64 clamav
fi
if [ -z "`getent passwd clamav`" ]; then
useradd -u 64 -g clamav -c "Clam AntiVirus" -d /dev/null -s /bin/false clamav
fi
}
post_upgrade() {
post_install $1
}
pre_remove() {
userdel clamav &> /dev/null
groupdel clamav &> /dev/null
}
op=$1
shift
$op $*