slitaz-forge rev 388

tank: add up-bugs to up bugs interface on Tank
author Christophe Lincoln <pankso@slitaz.org>
date Tue Jan 07 15:46:20 2014 +0100 (2014-01-07)
parents 6c20d73f8002
children 5fa1b3698015
files tank/tank
line diff
     1.1 --- a/tank/tank	Tue Jan 07 14:27:07 2014 +0100
     1.2 +++ b/tank/tank	Tue Jan 07 15:46:20 2014 +0100
     1.3 @@ -2,7 +2,7 @@
     1.4  #
     1.5  # Tank - Admin Tank, backup, update and give stats.
     1.6  #
     1.7 -# (C) 2012 SliTaz - GNU General Public License.
     1.8 +# (C) 2012-2014 SliTaz - GNU General Public License.
     1.9  # Author: Christophe Lincoln <pankso@slitaz.org>
    1.10  #
    1.11  
    1.12 @@ -28,6 +28,7 @@
    1.13    up-boot      Update http://boot.slitaz.org/
    1.14    up-cook      Update http://cook.slitaz.org/
    1.15    up-roadmap   Update http://roadmap.slitaz.org/
    1.16 +  up-bugs      Update http://bugs.slitaz.org/
    1.17  
    1.18  EOT
    1.19  }
    1.20 @@ -108,6 +109,16 @@
    1.21  		[ "$2" == "--nohg" ] || hg pull -u
    1.22  		cp -a roadmap/* $WWW/roadmap
    1.23  		echo "" ;;
    1.24 +	up-bugs)
    1.25 +		# Update Bugs Web interface
    1.26 +		bugs="$WWW/bugs"
    1.27 +		echo -e "\nUpdating: bugs.slitaz.org..."
    1.28 +		cd $REPOS/tazbug
    1.29 +		[ "$2" == "--nohg" ] || hg pull -u
    1.30 +		cp -a web/* ${bugs}
    1.31 +		cp README ${bugs}
    1.32 +		chown -R www.www ${bugs}
    1.33 +		echo "" ;;
    1.34  	up-stats)
    1.35  		echo -e "\nUpdating all awstats databases..." | tee -a $LOGFILE
    1.36  		date >> $LOGFILE