wok-6.x diff distcc/receipt @ rev 18765

Fix grep post_remove()
author Lucas Levrel <llevrel@yahoo.fr>
date Tue Dec 29 23:04:30 2015 +0100 (2015-12-29)
parents 0d8a1a3edc72
children 970c5ec9a60a
line diff
     1.1 --- a/distcc/receipt	Sun May 18 20:24:07 2014 +0000
     1.2 +++ b/distcc/receipt	Tue Dec 29 23:04:30 2015 +0100
     1.3 @@ -46,15 +46,15 @@
     1.4  
     1.5  post_install()
     1.6  {
     1.7 -	if ! grep -q nagios $1/etc/passwd; then
     1.8 +	if ! grep -q nagios "$1/etc/passwd"; then
     1.9  		echo -n "Adding user/group nagios..."
    1.10 -		chroot $1/ addgroup -S distcc
    1.11 -		chroot $1/ adduser -S -D -H -G distcc distcc
    1.12 +		chroot "$1/" addgroup -S distcc
    1.13 +		chroot "$1/" adduser -S -D -H -G distcc distcc
    1.14  		status
    1.15  	fi
    1.16  	
    1.17  	# Fix perms for files and directories
    1.18 -	chroot $1/ chown -R distcc.distcc /var/log/distccd
    1.19 +	chroot "$1/" chown -R distcc.distcc /var/log/distccd
    1.20  	  
    1.21  	cat <<EOF
    1.22  ----