2006-10-24 15:36:15 -05:00
|
|
|
#!/bin/sh
|
|
|
|
|
2016-03-03 12:28:40 -06:00
|
|
|
if [ -z "`getent group clamav`" ]; then
|
2015-11-25 16:43:37 -06:00
|
|
|
/usr/sbin/groupadd -r clamav
|
|
|
|
fi
|
|
|
|
|
2016-03-03 12:28:40 -06:00
|
|
|
if [ -z "`getent passwd clamav`" ]; then
|
2015-11-25 16:43:37 -06:00
|
|
|
/usr/sbin/useradd -r -g clamav -d /etc/clamav -s /bin/false -c "ClamAV" clamav
|
|
|
|
/usr/bin/passwd -l
|
|
|
|
fi
|