mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-18 22:54:00 +00:00
23 lines
360 B
Text
23 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 $*
|