wok-6.x rev 5886

privoxy: fix post_install
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Jul 21 16:47:50 2010 +0200 (2010-07-21)
parents 3516ecf32350
children 4c13bc290eec
files privoxy/receipt
line diff
     1.1 --- a/privoxy/receipt	Wed Jul 21 16:00:54 2010 +0200
     1.2 +++ b/privoxy/receipt	Wed Jul 21 16:47:50 2010 +0200
     1.3 @@ -50,23 +50,10 @@
     1.4  
     1.5  post_install()
     1.6  {
     1.7 -	# adduser privoxy if needed
     1.8 -	if ! grep -q privoxy $1/etc/passwd; then
     1.9 -		echo -n "Adding user privoxy..."
    1.10 -		chroot $1/ adduser privoxy -s /bin/false -H -D -S
    1.11 -		status
    1.12 -	fi
    1.13 -	
    1.14  	# And change file permissions
    1.15  	echo -n "Changing file permissions..."
    1.16 -	chown -R root.privoxy /etc/privoxy
    1.17 -	chown -R root.root /etc/privoxy/templates
    1.18 -	chown -R root.privoxy /var/log/privoxy
    1.19 +	chown -R root.nogroup $1/etc/privoxy
    1.20 +	chown -R root.root $1/etc/privoxy/templates
    1.21 +	chown -R root.nogroup $1/var/log/privoxy
    1.22  	status
    1.23  }
    1.24 -
    1.25 -# Del user privoxy when pkg is removed.
    1.26 -post_remove()
    1.27 -{
    1.28 -	deluser privoxy
    1.29 -}