aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/do-mung-newhost
diff options
context:
space:
mode:
authorMatt Rude <[email protected]>2011-05-07 20:24:11 -0500
committerMatt Rude <[email protected]>2011-05-07 20:24:11 -0500
commit36ef6b4fe2c26f3c03340a31b64e4d329c482adb (patch)
tree304f8d5e314c84aeb4793590cc67a4bbd5f2be5d /scripts/do-mung-newhost
parentf050e9d654ac9f8c237bcfaa27f84f9341d4179d (diff)
downloadtime.mattrude.com-36ef6b4fe2c26f3c03340a31b64e4d329c482adb.tar.gz
time.mattrude.com-36ef6b4fe2c26f3c03340a31b64e4d329c482adb.tar.bz2
time.mattrude.com-36ef6b4fe2c26f3c03340a31b64e4d329c482adb.zip
still starting out
Diffstat (limited to 'scripts/do-mung-newhost')
-rwxr-xr-xscripts/do-mung-newhost16
1 files changed, 16 insertions, 0 deletions
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