# HG changeset patch # User Paul Issott # Date 1289848689 0 # Node ID aa3552f39564756acf44298690f59abdba44a2f3 # Parent 0b8166cf98e57c82521be9ae94b776f0421f18c4 privoxy: change file perms diff -r 0b8166cf98e5 -r aa3552f39564 privoxy/receipt --- a/privoxy/receipt Mon Nov 15 15:27:53 2010 +0100 +++ b/privoxy/receipt Mon Nov 15 19:18:09 2010 +0000 @@ -45,7 +45,7 @@ cp stuff/daemon-privoxy $fs/etc/init.d/privoxy } -pre_install() +post_install() { # adduser privoxy if needed if ! grep -q privoxy $1/etc/passwd; then @@ -53,6 +53,14 @@ chroot $1/ adduser privoxy -s /bin/false -H -D status fi + + # and change file permissions + echo -n "Changing file permissions..." + chown -R root.privoxy $1/etc/privoxy + chown -R root.root $1/etc/privoxy/templates + chown root.root $1/etc/privoxy + chown root.privoxy $1/var/log/privoxy/logfile + status } # Del user privoxy when pkg is removed.