wok-next diff squidclamav/receipt @ rev 19954
qt4: typo
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Oct 16 15:44:30 2017 +0200 (2017-10-16) |
parents | 5286a067ac76 |
children | 757d032c55c7 |
line diff
1.1 --- a/squidclamav/receipt Sun Aug 11 19:53:39 2013 +0000 1.2 +++ b/squidclamav/receipt Mon Oct 16 15:44:30 2017 +0200 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 }