2016-02-24 01:27:23 +01:00
|
|
|
if [ -z `getent group clamav` ]; then
|
|
|
|
groupadd -r clamav
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ -z `getent passwd clamav` ]; then
|
|
|
|
useradd -r -g clamav -d /etc/clamav -s /bin/false -c "ClamAV" clamav
|
|
|
|
fi
|
|
|
|
|
2017-10-28 14:10:23 +02:00
|
|
|
isim=clamav
|
|
|
|
chown -R $isim:$isim $PKG/var/run/$isim $PKG/var/log/$isim
|
2016-02-24 01:27:23 +01:00
|
|
|
install -o clamav -g clamav -m 0775 -d /usr/share/clamav
|