View | Details | Raw Unified | Return to bug 259699 | Differences between
and this patch

Collapse All | Expand All

(-)b/security/clamav/files/clamav-clamd.in (+5 lines)
Lines 37-42 reload_cmd="%%PREFIX%%/bin/clamdscan --reload" Link Here
37
#clamav .93 won't start without a valid main.c[vl]d file
37
#clamav .93 won't start without a valid main.c[vl]d file
38
clamav_clamd_precmd()
38
clamav_clamd_precmd()
39
{
39
{
40
	if [ ! -d "$( dirname $pidfile )" ]; then
41
		echo "Missing \"$( dirname $pidfile )\" - creating ..."
42
		install -d -o clamav -g clamav $( dirname $pidfile )
43
	fi
44
40
	if [ ! -f %%DBDIR%%/main.cvd -a ! -f %%DBDIR%%/main.cld ];then
45
	if [ ! -f %%DBDIR%%/main.cvd -a ! -f %%DBDIR%%/main.cld ];then
41
		echo "Missing %%DBDIR%%/*.cvd or *.cld files.  You must run freshclam first"
46
		echo "Missing %%DBDIR%%/*.cvd or *.cld files.  You must run freshclam first"
42
		exit 1
47
		exit 1

Return to bug 259699