From 36ef6b4fe2c26f3c03340a31b64e4d329c482adb Mon Sep 17 00:00:00 2001 From: Matt Rude Date: Sat, 7 May 2011 20:24:11 -0500 Subject: still starting out --- scripts/do-mung-newhost | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 scripts/do-mung-newhost (limited to 'scripts/do-mung-newhost') diff --git a/scripts/do-mung-newhost b/scripts/do-mung-newhost new file mode 100755 index 0000000..b0219b9 --- /dev/null +++ b/scripts/do-mung-newhost @@ -0,0 +1,16 @@ +#!/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 + +sync +cat $TEMPLATESDIR/index-head out.template $TEMPLATESDIR/index-tail > index.html +rm -f out.template -- cgit v1.2.3-59-ga6da