wok diff clamav/receipt @ rev 1157

Add: Magnifier (Virtual Magnifying Glass)
author Paul Issott <paul@slitaz.org>
date Sun Jul 27 10:49:08 2008 +0000 (2008-07-27)
parents 4a84b1fa39c3
children e4688a3bbc50
line diff
     1.1 --- a/clamav/receipt	Sun Jul 20 00:36:25 2008 +0000
     1.2 +++ b/clamav/receipt	Sun Jul 27 10:49:08 2008 +0000
     1.3 @@ -47,23 +47,23 @@
     1.4  	
     1.5  	# Enable freshclam update
     1.6  	echo -n "Enabling freshclam update..."
     1.7 -	cd /etc/clamav
     1.8 +	cd $1/etc/clamav
     1.9  	sed 's/^Example/#Example/' < freshclam.conf > temp.file
    1.10  	mv temp.file freshclam.conf
    1.11  	status
    1.12  
    1.13  	# Enable clamd configuration
    1.14  	echo -n "Enabling clamd daemon..."
    1.15 -	cd /etc/clamav
    1.16 +	cd $1/etc/clamav
    1.17  	sed 's/^Example/#Example/; s/^#PidFile/PidFile/' < clamd.conf > temp.file
    1.18  	mv temp.file clamd.conf
    1.19  	status
    1.20  
    1.21  	
    1.22  	# adduser clamav if needed
    1.23 -	if ! grep -q clamav /etc/passwd; then
    1.24 +	if ! grep -q clamav $1/etc/passwd; then
    1.25  		echo "Adding user clamav..."
    1.26 -		adduser clamav -s /bin/false -H -D -S
    1.27 +		chroot $1/ adduser clamav -s /bin/false -H -D -S
    1.28  		status
    1.29  	fi
    1.30  }