# HG changeset patch # User Christophe Lincoln # Date 1332280287 -3600 # Node ID e9b52249d33e8db67d197a42192f9a3a866dcd91 # Parent eb06ca41241511b3f27a0a2f3ca579bc2f105fae tank: start to log some stuff diff -r eb06ca412415 -r e9b52249d33e tank/tank --- a/tank/tank Tue Mar 20 22:38:28 2012 +0100 +++ b/tank/tank Tue Mar 20 22:51:27 2012 +0100 @@ -11,6 +11,7 @@ VHOST="$WWW/tank" WEBSITE="$WWW/website" BACKUPS="/home/backups" +LOGFILE="/var/log/tank.log" usage() { cat << EOT @@ -75,12 +76,13 @@ cp -a cook/* $WWW/cook/undigest echo "" ;; up-stats) - echo -e "\nUpdating all awstats databases..." + echo "Updating all awstats databases..." for vh in pro boot cook people tank do - /var/www/cgi-bin/awstats.pl -config=$vh.slitaz.org -update - done - echo "" ;; + echo "" >> $LOGFILE + /var/www/cgi-bin/awstats.pl \ + -config=$vh.slitaz.org -update 2>&1 | tee -a $LOGFILE + done ;; adduser) # On Tank /etc/skel is empty to let tank handle default user # files. diff -r eb06ca412415 -r e9b52249d33e tank/web/index.php --- a/tank/web/index.php Tue Mar 20 22:38:28 2012 +0100 +++ b/tank/web/index.php Tue Mar 20 22:51:27 2012 +0100 @@ -113,6 +113,14 @@ (stats) +

Tank Log

+ +
+
+
+