slitaz-forge rev 401
tank: add up-irc to update irc.slitaz.org in on command
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Tue Jan 14 16:16:05 2014 +0100 (2014-01-14) |
parents | 2886f4c59d8f |
children | cad23317627c |
files | tank/tank |
line diff
1.1 --- a/tank/tank Tue Jan 14 16:12:03 2014 +0100 1.2 +++ b/tank/tank Tue Jan 14 16:16:05 2014 +0100 1.3 @@ -31,6 +31,7 @@ 1.4 up-cook Update http://cook.slitaz.org/ 1.5 up-roadmap Update http://roadmap.slitaz.org/ 1.6 up-bugs Update http://bugs.slitaz.org/ 1.7 + up-irc Update http://irc.slitaz.org/ 1.8 1.9 EOT 1.10 } 1.11 @@ -121,6 +122,14 @@ 1.12 cp README ${bugs} 1.13 chown -R www.www ${bugs} 1.14 echo "" ;; 1.15 + up-boot) 1.16 + # Update IRC interface 1.17 + echo -e "\nUpdating: irc.slitaz.org..." 1.18 + cd $REPOS/slitaz-forge 1.19 + [ "$2" == "--nohg" ] || hg pull -u 1.20 + rm -rf $WWW/irc/images $WWW/irc/lib 1.21 + cp -a irc/* $WWW/irc 1.22 + echo "" ;; 1.23 up-stats) 1.24 echo -e "\nUpdating all awstats databases..." | tee -a $LOGFILE 1.25 date >> $LOGFILE