From 825fccb8064c0f4b4b01595adbed7bc9d10412b4 Mon Sep 17 00:00:00 2001 From: Matt Rude Date: Sat, 7 May 2011 22:19:21 -0500 Subject: updatin scripts --- scripts/do-build-index | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) (limited to 'scripts/do-build-index') diff --git a/scripts/do-build-index b/scripts/do-build-index index b868fe6..3855b33 100755 --- a/scripts/do-build-index +++ b/scripts/do-build-index @@ -6,16 +6,28 @@ TEMPLATESDIR=/usr/local/www/data/scripts/templates cd $POOLPAGE cat /dev/null > out.template +echo "

NTP Hosts

+" >> out.template for X in `cat /usr/local/www/data/rrd/list-of-systems` do - sed -e s/POOL/$X/g $TEMPLATESDIR/template2 >> out.template + sed -e s/POOL/$X/g $TEMPLATESDIR/template >> out.template done sync cat $TEMPLATESDIR/index-head out.template $TEMPLATESDIR/index-tail > index.html -rm -f out.template + +# Build the indexs for the hosts. +for X in `cat /usr/local/www/data/rrd/list-of-systems` +do + cat /dev/null > out.template + sed -e s/POOL/$X/g $TEMPLATESDIR/template3 >> out.template + sync + cat $TEMPLATESDIR/index-head out.template $TEMPLATESDIR/index-tail > $X.html + rm -f out.template +done -- cgit v1.2.3-59-ga6da