updated on Thu Jan 26 00:18:00 UTC 2012
[aur-mirror.git] / clamav-devel / clamav-devel.install
blob87625bdb84dda1626b56ddb3513cc4a20969adae
1 post_install() {
2   if [ -z "`getent group clamav`" ]; then
3     groupadd -g 64 clamav
4   fi
5   if [ -z "`getent passwd clamav`" ]; then
6     useradd -u 64 -g clamav -c "Clam AntiVirus" -d /dev/null -s /bin/false clamav
7   fi
10 post_upgrade() {
11   post_install $1
14 pre_remove() {
15   userdel clamav &> /dev/null
16   groupdel clamav &> /dev/null
19 op=$1
20 shift
22 $op $*