wok-next diff squid/receipt @ rev 19025

syslinux/win32.c: fix write sector
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Apr 02 18:58:38 2016 +0200 (2016-04-02)
parents 451ec7e0b47b
children f496af4fe2bf
line diff
     1.1 --- a/squid/receipt	Tue Jan 07 21:41:47 2014 +0100
     1.2 +++ b/squid/receipt	Sat Apr 02 18:58:38 2016 +0200
     1.3 @@ -100,23 +100,22 @@
     1.4  # Pre and post install commands for Tazpkg.
     1.5  post_install()
     1.6  {
     1.7 -	local root
     1.8  	local user
     1.9  	local group
    1.10  	
    1.11  	user=squid
    1.12  	group=squid
    1.13  	
    1.14 -	if ! grep -q $user $1/etc/passwd; then
    1.15 +	if ! grep -q $user "$1/etc/passwd"; then
    1.16  		echo -n "Adding user/group $user..."
    1.17 -		chroot $1/ addgroup -S $group
    1.18 -		chroot $1/ adduser -S -D -H -G $group $user
    1.19 +		chroot "$1/" addgroup -S $group
    1.20 +		chroot "$1/" adduser -S -D -H -G $group $user
    1.21  		status
    1.22  	fi
    1.23  	
    1.24  
    1.25  	# Set perms for files and directories
    1.26 -	chroot $1/ chown -R ${user}.${group} /var/log/squid \
    1.27 +	chroot "$1/" chown -R ${user}.${group} /var/log/squid \
    1.28  		/var/cache/squid 
    1.29  
    1.30  	cat <<EOF