wok diff squidclamav/receipt @ rev 19201

Add gtkspell3
author Aleksej Bobylev <al.bobylev@gmail.com>
date Thu Jun 09 13:36:10 2016 +0300 (2016-06-09)
parents 5286a067ac76
children 84809abba7af
line diff
     1.1 --- a/squidclamav/receipt	Sun Aug 11 19:53:39 2013 +0000
     1.2 +++ b/squidclamav/receipt	Thu Jun 09 13:36:10 2016 +0300
     1.3 @@ -52,8 +52,8 @@
     1.4  #Post install command
     1.5  post_install()
     1.6  {
     1.7 -	echo 'Service squidclamav squidclamav.so' >> $1/etc/c-icap/c-icap.conf
     1.8 -	if ( ps | grep -q squid ); then
     1.9 +	echo 'Service squidclamav squidclamav.so' >> "$1/etc/c-icap/c-icap.conf"
    1.10 +	[ "$1" ] || if ( ps | grep -q squid ); then
    1.11  		/etc/init.d/squid restart
    1.12  	fi
    1.13  }
    1.14 @@ -61,11 +61,11 @@
    1.15  #Post remove command
    1.16  post_remove()
    1.17  {
    1.18 -	sed -i -e "s/.*squidclamav.*//" $1/etc/c-icap/c-icap.conf
    1.19 -	if ( ps | grep -q squid ); then
    1.20 +	sed -i -e "s/.*squidclamav.*//" "$1/etc/c-icap/c-icap.conf"
    1.21 +	[ "$1" ] || if ( ps | grep -q squid ); then
    1.22  		/etc/init.d/squid restart
    1.23  	fi
    1.24 -	if ( ps | grep -q c-icap ); then
    1.25 +	[ "$1" ] || if ( ps | grep -q c-icap ); then
    1.26  		/etc/init.d/c-icapd restart
    1.27  	fi
    1.28  }