updated on Mon Jan 23 16:10:15 UTC 2012
[aur-mirror.git] / clamav-git / clamav-git.install
blob68b628b0ed0636bde272ae5edcc7489c2adf2744
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 $*