# HG changeset patch # User Christophe Lincoln # Date 1301318320 -7200 # Node ID 482a0e54ae168e95cf4a079341694137589bbf3c # Parent 08ebcbf6273196698d861eea55ec733cff92c3b6 tank: update taztank to use slitaz-forge repo diff -r 08ebcbf62731 -r 482a0e54ae16 tank/taztank --- a/tank/taztank Mon Mar 28 15:14:17 2011 +0200 +++ b/tank/taztank Mon Mar 28 15:18:40 2011 +0200 @@ -17,6 +17,7 @@ chroot Move a user into a new chroot location up-web Update http://tank.slitaz.org/ up-people Update http://people.slitaz.org/ + up-boot Update http://boot.slitaz.org/ up-web-stats Update Awstats statistics (run by cron) clean-labs Clean Redmine Labs (no longer on Tank)\n" } @@ -89,10 +90,10 @@ up-web) # Update Tank web interface: http://tank.slitaz.org/ echo -e "\nUpdating: tank.slitaz.org..." - cd $REPOS/tank + cd $REPOS/slitaz-forge hg update - rm -rf $VHOST/*.* $VHOST/pics/website - cp -a web/* $VHOST ;; + rm -rf $VHOST/*.* $VHOST/pics/website $VHOST/images + cp -a tank/web/* $VHOST ;; up-people) # Update People web interface: http://people.slitaz.org/ echo -e "\nUpdating: people.slitaz.org..." @@ -100,22 +101,19 @@ hg update rm -rf $WWW/people/* cp -a people/* $WWW/people ;; + up-boot) + # Update Web Boot interface: http://boot.slitaz.org/ + echo -e "\nUpdating: boot.slitaz.org..." + cd $REPOS/slitaz-forge + hg update + rm -rf $WWW/boot/* + cp -a boot/* $WWW/boot ;; up-web-stats) echo -e "\nUpdating all awstats databases...\n" for vh in www boot pkgs do /var/www/cgi-bin/awstats.pl -config=$vh.slitaz.org done ;; - clean-labs) - # Redmin needs some time help - /etc/init.d/lighttpd stop - /etc/init.d/mysql stop - killall ruby - rm -rf labs/tmp/sessions - mkdir -p labs/tmp/sessions - chown www.www labs/tmp/sessions - /etc/init.d/mysql start - /etc/init.d/lighttpd start ;; *) usage ;; esac