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