wok diff privoxy/receipt @ rev 7695

Up: libogg to 1.2.2.
author Christopher Rogers <slaxemulator@gmail.com>
date Sat Dec 18 10:27:38 2010 +0000 (2010-12-18)
parents e6ebd77ac2ff
children 5e2ee3f01fad
line diff
     1.1 --- a/privoxy/receipt	Sun Nov 14 14:17:18 2010 +0000
     1.2 +++ b/privoxy/receipt	Sat Dec 18 10:27:38 2010 +0000
     1.3 @@ -45,7 +45,7 @@
     1.4  	cp stuff/daemon-privoxy $fs/etc/init.d/privoxy
     1.5  }
     1.6  
     1.7 -pre_install()
     1.8 +post_install()
     1.9  {
    1.10  	# adduser privoxy if needed
    1.11  	if ! grep -q privoxy $1/etc/passwd; then
    1.12 @@ -53,6 +53,14 @@
    1.13  		chroot $1/ adduser privoxy -s /bin/false -H -D
    1.14  		status
    1.15  	fi
    1.16 +
    1.17 +	# and change file permissions
    1.18 +	echo -n "Changing file permissions..."
    1.19 +	chown -R root.privoxy $1/etc/privoxy
    1.20 +	chown -R root.root $1/etc/privoxy/templates
    1.21 +	chown root.root $1/etc/privoxy
    1.22 +	chown root.privoxy $1/var/log/privoxy/logfile
    1.23 +	status
    1.24  }
    1.25  
    1.26  # Del user privoxy when pkg is removed.