wok-6.x diff c_icap/receipt @ rev 18665

Up tazpkg(882)
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Dec 04 05:36:22 2015 +0200 (2015-12-04)
parents 0d8a1a3edc72
children 9e01bc6321ea
line diff
     1.1 --- a/c_icap/receipt	Sun May 18 20:24:07 2014 +0000
     1.2 +++ b/c_icap/receipt	Fri Dec 04 05:36:22 2015 +0200
     1.3 @@ -67,12 +67,12 @@
     1.4  		
     1.5  		echo "Stopping daemon..."
     1.6  		if (ps | grep -q c-icap); then
     1.7 -			/etc/init.d/c-icapd stop
     1.8 +			chroot "$1/" /etc/init.d/c-icapd stop
     1.9  		fi
    1.10  }
    1.11  post_remove()
    1.12  {
    1.13  	echo "Removing stalled files..."
    1.14 -	test -d /var/log/c-icap && rm -rf /var/log/c-icap
    1.15 -	test -d /usr/run/c-icap && rm -rf /usr/run/c-icap
    1.16 +	test -d $1/var/log/c-icap && rm -rf $1/var/log/c-icap
    1.17 +	test -d $1/usr/run/c-icap && rm -rf $1/usr/run/c-icap
    1.18  }