slitaz-pizza rev 56

typo (we may not use libtaz.sh and other for now since pizza run on 4.0 without latest code from Hg
author Christophe Lincoln <pankso@slitaz.org>
date Sat May 19 17:56:19 2012 +0200 (2012-05-19)
parents fa4f8e38b368
children ead95c9ab322
files pizza
line diff
     1.1 --- a/pizza	Sat May 19 17:45:33 2012 +0200
     1.2 +++ b/pizza	Sat May 19 17:56:19 2012 +0200
     1.3 @@ -48,7 +48,7 @@
     1.4  # Status function.
     1.5  status() {
     1.6  	if [ $? = 0 ]; then
     1.7 -		echo " OK"
     1.8 +		echo " Done"
     1.9  	else
    1.10  		echo " Failed"
    1.11  	fi
    1.12 @@ -80,8 +80,7 @@
    1.13  }
    1.14  
    1.15  # The Bot is chrooted and can't access main pizza.conf
    1.16 -bot_config()
    1.17 -{
    1.18 +bot_config() {
    1.19  	config=$chroot/etc/slitaz/pizza-bot.conf
    1.20  	echo '# Pizza Bot configuration.' > $config
    1.21  	grep ^PIZZA_URL /etc/slitaz/pizza.conf >> $config
    1.22 @@ -124,6 +123,7 @@
    1.23  		cp -f /etc/resolv.conf $chroot/etc
    1.24  		mkdir -p $chroot/etc/init.d
    1.25  		bot_config
    1.26 +
    1.27  		# No more needed when slitaz-base-files have rc.functions
    1.28  		cp -f /etc/init.d/rc.functions $chroot/etc/init.d
    1.29  		echo '# Check pizza queue every 15 mins' > $crontabs/root
    1.30 @@ -183,7 +183,7 @@
    1.31  		chroot $chroot /etc/init.d/crond start
    1.32  		[ "$MAIL_DOMAIN" ] && chroot $chroot /etc/init.d/postfix start ;;
    1.33  	stop)
    1.34 -		# unmount and stop Pizza
    1.35 +		# Unmount and stop Pizza
    1.36  		if mount | fgrep -q "pizza/chroot"; then
    1.37  			gettext -e "Unmounting packages and public...\n"
    1.38  			umount $pkgs