slitaz-forge rev 389

tank: start online users cmd (must add who)
author Christophe Lincoln <pankso@slitaz.org>
date Tue Jan 07 17:41:55 2014 +0100 (2014-01-07)
parents b34ee9cca8a1
children bcbc417e3a5c
files tank/tank
line diff
     1.1 --- a/tank/tank	Tue Jan 07 15:46:20 2014 +0100
     1.2 +++ b/tank/tank	Tue Jan 07 17:41:55 2014 +0100
     1.3 @@ -5,6 +5,7 @@
     1.4  # (C) 2012-2014 SliTaz - GNU General Public License.
     1.5  # Author: Christophe Lincoln <pankso@slitaz.org>
     1.6  #
     1.7 +. /lib/libtaz.sh
     1.8  
     1.9  REPOS="/home/slitaz/repos"
    1.10  WWW="/home/slitaz/www"
    1.11 @@ -21,6 +22,7 @@
    1.12    backup|-b    Backup files and MySQL DB
    1.13    adduser      Add user on Tank and create people files
    1.14    up-stats     Update Awstats statistics (run by cron)
    1.15 +  online       Show online users
    1.16  
    1.17    up-tank      Update http://tank.slitaz.org/
    1.18    up-people    Update http://people.slitaz.org/
    1.19 @@ -163,6 +165,9 @@
    1.20  EOF
    1.21  		#chown -R $user.$user /home/$user
    1.22  		echo -e "Done\n" ;;
    1.23 +	online)
    1.24 +		echo -n "Bugs online users: "
    1.25 +		colorize 34 "$(ls /tmp/bugs/sessions | wc -l)" ;;
    1.26  	*)
    1.27  		usage ;;
    1.28  esac