diff options
author | Matt Rude <[email protected]> | 2011-05-07 21:16:20 -0500 |
---|---|---|
committer | Matt Rude <[email protected]> | 2011-05-07 21:16:20 -0500 |
commit | ec9dbe5fa9e188ecada18dafdb96de87a5b9a394 (patch) | |
tree | a75b42d963672f43fb2d640680da0d59d5627602 /scripts/do-build-index | |
parent | 7d2ac99a052f219d722be747e62a65a936db720c (diff) | |
download | time.mattrude.com-ec9dbe5fa9e188ecada18dafdb96de87a5b9a394.tar.gz time.mattrude.com-ec9dbe5fa9e188ecada18dafdb96de87a5b9a394.tar.bz2 time.mattrude.com-ec9dbe5fa9e188ecada18dafdb96de87a5b9a394.zip |
moving the index names
Diffstat (limited to 'scripts/do-build-index')
-rwxr-xr-x | scripts/do-build-index | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/scripts/do-build-index b/scripts/do-build-index new file mode 100755 index 0000000..b868fe6 --- /dev/null +++ b/scripts/do-build-index @@ -0,0 +1,21 @@ +#!/bin/sh + +POOLPAGE=/usr/local/www/data/status +TEMPLATESDIR=/usr/local/www/data/scripts/templates + +cd $POOLPAGE +cat /dev/null > 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 +done + +for X in `cat /usr/local/www/data/rrd/list-of-systems` +do + sed -e s/POOL/$X/g $TEMPLATESDIR/template2 >> out.template +done + +sync +cat $TEMPLATESDIR/index-head out.template $TEMPLATESDIR/index-tail > index.html +rm -f out.template |