wok-6.x diff privoxy/receipt @ rev 9697
a*, b*, c*: starte with a tiny sed in the wok for stuff/ --> $/stuff
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sat May 07 23:47:19 2011 +0200 (2011-05-07) |
parents | 5e2ee3f01fad |
children | d1768332cee0 |
line diff
1.1 --- a/privoxy/receipt Wed Jan 19 00:02:05 2011 +0000 1.2 +++ b/privoxy/receipt Sat May 07 23:47:19 2011 +0200 1.3 @@ -16,6 +16,7 @@ 1.4 { 1.5 # Have to create privoxy user/group to be able to compile 1.6 adduser -s /bin/false -H -D -u 42 privoxy 1.7 + addgroup -g 42 privoxy 1.8 1.9 cd $src 1.10 1.11 @@ -54,12 +55,18 @@ 1.12 status 1.13 fi 1.14 1.15 + if ! grep -q privoxy $1/etc/group; then 1.16 + echo -n "Adding group privoxy..." 1.17 + chroot $1/ addgroup -g 42 privoxy 1.18 + status 1.19 + fi 1.20 + 1.21 # and change file permissions 1.22 echo -n "Changing file permissions..." 1.23 - chown -R root.privoxy $1/etc/privoxy 1.24 + chown -R privoxy.privoxy $1/etc/privoxy 1.25 chown -R root.root $1/etc/privoxy/templates 1.26 chown root.root $1/etc/privoxy 1.27 - chown root.privoxy $1/var/log/privoxy/logfile 1.28 + chown privoxy.privoxy $1/var/log/privoxy/logfile 1.29 status 1.30 } 1.31 1.32 @@ -67,4 +74,5 @@ 1.33 post_remove() 1.34 { 1.35 deluser privoxy 1.36 + delgroup privoxy 1.37 }