wok-6.x diff dovecot/receipt @ rev 18989

Up: Iron Browser v24.0.1350.0 to v48.2550.0.
author Leonardo Laporte <hackdorte@sapo.pt>
date Fri Mar 18 03:39:02 2016 -0300 (2016-03-18)
parents 70fb5fbb6fde
children 970c5ec9a60a
line diff
     1.1 --- a/dovecot/receipt	Sat Oct 18 14:31:43 2014 +0200
     1.2 +++ b/dovecot/receipt	Fri Mar 18 03:39:02 2016 -0300
     1.3 @@ -86,17 +86,17 @@
     1.4  	user=dovecot
     1.5  	group=dovecot
     1.6  	
     1.7 -	if ! grep -q $user $1/etc/passwd; then
     1.8 +	if ! grep -q $user "$1/etc/passwd"; then
     1.9  		echo -n "Adding user/group $user..."
    1.10 -		chroot $1/ addgroup -g 76 -S $group
    1.11 -		chroot $1/ adduser -u 76 -S -D -H -G $group $user
    1.12 -		chroot $1/ adduser -u 74 -S -D -H -G nogroup dovenull 
    1.13 +		chroot "$1/" addgroup -g 76 -S $group
    1.14 +		chroot "$1/" adduser -u 76 -S -D -H -G $group $user
    1.15 +		chroot "$1/" adduser -u 74 -S -D -H -G nogroup dovenull 
    1.16  		status
    1.17  	fi
    1.18  	
    1.19  
    1.20  	# Set perms for files and directories
    1.21 -	chroot $1/ chown -R ${user}.${group} /var/log/${user} \
    1.22 +	chroot "$1/" chown -R ${user}.${group} /var/log/${user} \
    1.23  
    1.24  	cat <<EOF
    1.25  ----
    1.26 @@ -113,8 +113,8 @@
    1.27  post_remove()
    1.28  {
    1.29  	echo "Removing stalled files..."
    1.30 -	test -d $1/var/log/dovecot && rm -rf $1/var/log/dovecot
    1.31 -	test -d $1/var/run/dovecot && rm -rf $1/var/run/dovecot
    1.32 +	test -d "$1/var/log/dovecot" && rm -rf "$1/var/log/dovecot"
    1.33 +	test -d "$1/var/run/dovecot" && rm -rf "$1/var/run/dovecot"
    1.34  	
    1.35  	echo "Removing user/group daemon"
    1.36  	chroot "$1/" deluser dovecot