aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/do-build-index
diff options
context:
space:
mode:
authorMatt Rude <[email protected]>2011-05-07 22:19:21 -0500
committerMatt Rude <[email protected]>2011-05-07 22:19:21 -0500
commit825fccb8064c0f4b4b01595adbed7bc9d10412b4 (patch)
treebd0058b06a43359223521903d30fe2497456b2ee /scripts/do-build-index
parent9ebe31e6656bb2b0fca29118d467da4ab1fa3636 (diff)
downloadtime.mattrude.com-825fccb8064c0f4b4b01595adbed7bc9d10412b4.tar.gz
time.mattrude.com-825fccb8064c0f4b4b01595adbed7bc9d10412b4.tar.bz2
time.mattrude.com-825fccb8064c0f4b4b01595adbed7bc9d10412b4.zip
updatin scripts
Diffstat (limited to 'scripts/do-build-index')
-rwxr-xr-xscripts/do-build-index18
1 files changed, 15 insertions, 3 deletions
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 "<h2>NTP Hosts</h2>
+<ul>" >> out.template
for X in `cat /usr/local/www/data/rrd/list-of-systems`
do
- sed -e s/POOL/$X/g $TEMPLATESDIR/template >> out.template
+ echo "<li><a href=$X>$X</a>" >> out.template
done
+echo "</ul>" >> 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