ssfs rev 65

web: display correct time zone
author Christophe Lincoln <pankso@slitaz.org>
date Mon Jun 13 17:34:45 2011 +0200 (2011-06-13)
parents 09b765c4e000
children 694076541061
files README web/ssfs.cgi
line diff
     1.1 --- a/README	Sun Jun 12 23:23:57 2011 +0200
     1.2 +++ b/README	Mon Jun 13 17:34:45 2011 +0200
     1.3 @@ -149,7 +149,7 @@
     1.4  vdisk and format it to ext3:
     1.5  
     1.6  # dd if=/dev/zero of=/home/ssfs.disk bs=1G count=2
     1.7 -# mkfs.ext3 -T ext3 -L "Ssfs" -F /home/ssfs.ext3
     1.8 +# mkfs.ext3 -T ext3 -L "Ssfs" -F /home/ssfs.disk
     1.9  
    1.10  Now you have a virtual disk you can mount it, the path must match SSFS_CHROOT
    1.11  found in ssfs-server.conf, default mount point is /ssfs to clearly separate
     2.1 --- a/web/ssfs.cgi	Sun Jun 12 23:23:57 2011 +0200
     2.2 +++ b/web/ssfs.cgi	Mon Jun 13 17:34:45 2011 +0200
     2.3 @@ -12,9 +12,10 @@
     2.4  vused=$(du -sh $root | awk '{print $1}')
     2.5  users=$(ls $root/home | wc -l)
     2.6  pct=$(df $root | fgrep $root | awk '{print $5}')
     2.7 -tz=$(cat /etc/TZ)
     2.8  date=$(date "+%Y-%m-%d %H:%M")
     2.9  
    2.10 +export TZ=$(cat /etc/TZ)
    2.11 +
    2.12  # XHTML footer function.
    2.13  xhtml_footer() {
    2.14  	cat << EOT
    2.15 @@ -66,7 +67,7 @@
    2.16  <h2>Ssfs server $(hostname)</h2>
    2.17  <pre>
    2.18  Server time   : $date
    2.19 -Time zone     : $tz
    2.20 +Time zone     : $TZ
    2.21  </pre>
    2.22  
    2.23  <h2>Virtual disk stats</h2>