slitaz-forge rev 41

tank: update taztank to use slitaz-forge repo
author Christophe Lincoln <pankso@slitaz.org>
date Mon Mar 28 15:18:40 2011 +0200 (2011-03-28)
parents 08ebcbf62731
children 0e91bc735875
files tank/taztank
line diff
     1.1 --- a/tank/taztank	Mon Mar 28 15:14:17 2011 +0200
     1.2 +++ b/tank/taztank	Mon Mar 28 15:18:40 2011 +0200
     1.3 @@ -17,6 +17,7 @@
     1.4    chroot        Move a user into a new chroot location
     1.5    up-web        Update http://tank.slitaz.org/
     1.6    up-people     Update http://people.slitaz.org/
     1.7 +  up-boot       Update http://boot.slitaz.org/
     1.8    up-web-stats  Update Awstats statistics (run by cron)
     1.9    clean-labs    Clean Redmine Labs (no longer on Tank)\n"
    1.10  }
    1.11 @@ -89,10 +90,10 @@
    1.12  	up-web)
    1.13  		# Update Tank web interface: http://tank.slitaz.org/
    1.14  		echo -e "\nUpdating: tank.slitaz.org..."
    1.15 -		cd $REPOS/tank
    1.16 +		cd $REPOS/slitaz-forge
    1.17  		hg update
    1.18 -		rm -rf $VHOST/*.* $VHOST/pics/website
    1.19 -		cp -a web/* $VHOST ;;
    1.20 +		rm -rf $VHOST/*.* $VHOST/pics/website $VHOST/images
    1.21 +		cp -a tank/web/* $VHOST ;;
    1.22  	up-people)
    1.23  		# Update People web interface: http://people.slitaz.org/
    1.24  		echo -e "\nUpdating: people.slitaz.org..."
    1.25 @@ -100,22 +101,19 @@
    1.26  		hg update
    1.27  		rm -rf $WWW/people/*
    1.28  		cp -a people/* $WWW/people ;;
    1.29 +	up-boot)
    1.30 +		# Update Web Boot interface: http://boot.slitaz.org/
    1.31 +		echo -e "\nUpdating: boot.slitaz.org..."
    1.32 +		cd $REPOS/slitaz-forge
    1.33 +		hg update
    1.34 +		rm -rf $WWW/boot/*
    1.35 +		cp -a boot/* $WWW/boot ;;
    1.36  	up-web-stats)
    1.37  		echo -e "\nUpdating all awstats databases...\n"
    1.38  		for vh in www boot pkgs
    1.39  		do
    1.40  			/var/www/cgi-bin/awstats.pl -config=$vh.slitaz.org 
    1.41  		done ;;
    1.42 -	clean-labs)
    1.43 -		# Redmin needs some time help
    1.44 -		/etc/init.d/lighttpd stop
    1.45 -		/etc/init.d/mysql stop
    1.46 -		killall ruby
    1.47 -		rm -rf labs/tmp/sessions
    1.48 -		mkdir -p labs/tmp/sessions
    1.49 -		chown www.www labs/tmp/sessions
    1.50 -		/etc/init.d/mysql start
    1.51 -		/etc/init.d/lighttpd start ;;
    1.52  	*)
    1.53  		usage ;;
    1.54  esac