repo.or.cz
/
aur-mirror.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
updated on Thu Jan 26 00:18:00 UTC 2012
[aur-mirror.git]
/
clamav-git
/
clamav-git.install
blob
68b628b0ed0636bde272ae5edcc7489c2adf2744
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
8
}
9
10
post_upgrade() {
11
post_install $1
12
}
13
14
pre_remove() {
15
userdel clamav &> /dev/null
16
groupdel clamav &> /dev/null
17
}
18
19
op=$1
20
shift
21
22
$op $*
23