wok diff privoxy/receipt @ rev 19469

cairo-gl, compiz: update depends
author Xander Ziiryanoff <psychomaniak@xakep.ru>
date Thu Oct 27 16:11:49 2016 +0200 (2016-10-27)
parents bcccafbf2c8a
children 80f0897ed3d3
line diff
     1.1 --- a/privoxy/receipt	Thu Nov 12 19:07:07 2015 +0100
     1.2 +++ b/privoxy/receipt	Thu Oct 27 16:11:49 2016 +0200
     1.3 @@ -51,24 +51,24 @@
     1.4  post_install()
     1.5  {
     1.6  	# adduser privoxy if needed
     1.7 -	if ! grep -q privoxy $1/etc/passwd; then
     1.8 +	if ! grep -q privoxy "$1/etc/passwd"; then
     1.9  		echo -n "Adding user privoxy..."
    1.10 -		chroot $1/ adduser -s /bin/false -H -D -u 42 privoxy
    1.11 +		chroot "$1/" adduser -s /bin/false -H -D -u 42 privoxy
    1.12  		status
    1.13  	fi
    1.14  
    1.15 -	if ! grep -q privoxy $1/etc/group; then
    1.16 +	if ! grep -q privoxy "$1/etc/group"; then
    1.17  		echo -n "Adding group privoxy..."
    1.18 -		chroot $1/ addgroup -g 42 privoxy
    1.19 +		chroot "$1/" addgroup -g 42 privoxy
    1.20  		status
    1.21  	fi
    1.22  
    1.23  	# and change file permissions
    1.24  	echo -n "Changing file permissions..."
    1.25 -	chroot $1/ chown -R privoxy.privoxy /etc/privoxy
    1.26 -	chown -R root.root $1/etc/privoxy/templates
    1.27 -	chown root.root $1/etc/privoxy
    1.28 -	chroot $1/ chown privoxy.privoxy /var/log/privoxy/logfile
    1.29 +	chroot "$1/" chown -R privoxy.privoxy /etc/privoxy
    1.30 +	chown -R root.root "$1/etc/privoxy/templates"
    1.31 +	chown root.root "$1/etc/privoxy"
    1.32 +	chroot "$1/" chown privoxy.privoxy /var/log/privoxy/logfile
    1.33  	status
    1.34  }
    1.35