clamav.kur-kos 303 B

123456789101112
  1. if [ -z `getent group clamav` ]; then
  2. groupadd -r clamav
  3. fi
  4. if [ -z `getent passwd clamav` ]; then
  5. useradd -r -g clamav -d /etc/clamav -s /bin/false -c "ClamAV" clamav
  6. fi
  7. name=clamav
  8. chown -R $name:$name $PKG/var/run/$name $PKG/var/log/$name
  9. install -o clamav -g clamav -m 0775 -d /usr/share/clamav