wok diff cups/receipt @ rev 2277

mirror-tools: fix chroot path for mkpkgiso
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Feb 19 10:15:15 2009 +0000 (2009-02-19)
parents 451844bef4f7
children 87fe479354bc
line diff
     1.1 --- a/cups/receipt	Tue Feb 10 16:45:43 2009 +0100
     1.2 +++ b/cups/receipt	Thu Feb 19 10:15:15 2009 +0000
     1.3 @@ -54,10 +54,11 @@
     1.4  # Start cups daemon and edit daemons.conf.
     1.5  post_install()
     1.6  {
     1.7 -	/etc/init.d/cupsd start || continue
     1.8 -	
     1.9  	local root
    1.10  	root=$1
    1.11 +	if [ -z "$root" ]; then
    1.12 +		/etc/init.d/cupsd start || continue
    1.13 +	fi
    1.14  	if ! grep -q ^CUPSD_OPTIONS $root/etc/daemons.conf; then
    1.15  		echo '# Cups printing daemon options.' >> $root/etc/daemons.conf
    1.16  		echo 'CUPSD_OPTIONS=""' >> $root/etc/daemons.conf