slitaz-forge rev 189
tank: small improvment to util
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Tue Mar 20 23:00:45 2012 +0100 (2012-03-20) |
parents | e9b52249d33e |
children | 86c15c0f56df |
files | tank/Makefile tank/tank |
line diff
1.1 --- a/tank/Makefile Tue Mar 20 22:51:27 2012 +0100 1.2 +++ b/tank/Makefile Tue Mar 20 23:00:45 2012 +0100 1.3 @@ -16,6 +16,7 @@ 1.4 cp -a files/etc $(DESTDIR)/ 1.5 cp -a files/usr/bin $(DESTDIR)/ 1.6 /etc/init.d/crond restart 1.7 + /etc/init.d/lighttpd restart 1.8 1.9 uninstall: 1.10 rm -f $(PREFIX)/bin/tank
2.1 --- a/tank/tank Tue Mar 20 22:51:27 2012 +0100 2.2 +++ b/tank/tank Tue Mar 20 23:00:45 2012 +0100 2.3 @@ -76,13 +76,13 @@ 2.4 cp -a cook/* $WWW/cook/undigest 2.5 echo "" ;; 2.6 up-stats) 2.7 - echo "Updating all awstats databases..." 2.8 + echo -e "\nUpdating all awstats databases..." | tee -a $LOGFILE 2.9 + date >> $LOGFILE 2.10 for vh in pro boot cook people tank 2.11 do 2.12 - echo "" >> $LOGFILE 2.13 /var/www/cgi-bin/awstats.pl \ 2.14 -config=$vh.slitaz.org -update 2>&1 | tee -a $LOGFILE 2.15 - done ;; 2.16 + done && echo "" ;; 2.17 adduser) 2.18 # On Tank /etc/skel is empty to let tank handle default user 2.19 # files.