#!/bin/sh # # Make simple web page with summary information. This should be rewritten # to use some template system and be more flexible. # ( cat < sitesummary report

sitesummary report

EOF for f in site-summary \ hostclass-summary \ kernelversion-summary \ agesinceseen-summary \ hardware-model-summary \ debian-version-summary \ debian_edu-summary ; do echo "

$f

" echo "
"
    /usr/lib/sitesummary/$f
    echo "
" echo done # Add last updated string echo "
" echo -n "

Last updated: " date echo "

" cat < EOF ) > /var/lib/sitesummary/www/index.html exit 0