PKGBUILDs/extra/clamav/clamav.install

23 lines
360 B
Text
Raw Normal View History

2009-10-10 02:23:22 +00:00
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 $*