wok rev 1595

clamav: adduser before chown
author Paul Issott <paul@slitaz.org>
date Fri Oct 17 16:25:04 2008 +0000 (2008-10-17)
parents 270174cf554e
children 815abac9da78
files clamav/receipt
line diff
     1.1 --- a/clamav/receipt	Fri Oct 17 13:33:56 2008 +0000
     1.2 +++ b/clamav/receipt	Fri Oct 17 16:25:04 2008 +0000
     1.3 @@ -60,15 +60,15 @@
     1.4  	mv temp.file clamd.conf
     1.5  	status
     1.6  
     1.7 -	# Enable daily.cvd updates
     1.8 -	chown -R clamav:clamav /usr/share/clamav
     1.9 -
    1.10  	# adduser clamav if needed
    1.11  	if ! grep -q clamav $1/etc/passwd; then
    1.12  		echo -n "Adding user clamav..."
    1.13  		chroot $1/ adduser clamav -s /bin/false -H -D -S
    1.14  		status
    1.15  	fi
    1.16 +
    1.17 +	# Enable daily.cvd updates
    1.18 +	chown -R clamav:clamav /usr/share/clamav
    1.19  }
    1.20  
    1.21  # Del user clamav when pkg is removed.