wok-current diff squidclamav/receipt @ rev 21388
updated luufs (e7a7eb1 -> 0.1)
author | Hans-G?nter Theisgen |
---|---|
date | Mon Apr 22 14:53:33 2019 +0100 (2019-04-22) |
parents | 5286a067ac76 |
children | 84809abba7af |
line diff
1.1 --- a/squidclamav/receipt Sun Aug 11 19:53:39 2013 +0000 1.2 +++ b/squidclamav/receipt Mon Apr 22 14:53:33 2019 +0100 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 }