wok rev 7279

privoxy: change file perms
author Paul Issott <paul@slitaz.org>
date Mon Nov 15 19:18:09 2010 +0000 (2010-11-15)
parents 0b8166cf98e5
children 72bf20ddeee0
files privoxy/receipt
line diff
     1.1 --- a/privoxy/receipt	Mon Nov 15 15:27:53 2010 +0100
     1.2 +++ b/privoxy/receipt	Mon Nov 15 19:18:09 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.