From c1aed7cd49f584e8d4fc870d303497925da2e916 Mon Sep 17 00:00:00 2001 From: Matt Rude Date: Fri, 27 May 2011 23:49:11 -0500 Subject: moving files --- scripts/do-build-index | 35 ----------------------------------- scripts/do-build-site | 35 +++++++++++++++++++++++++++++++++++ 2 files changed, 35 insertions(+), 35 deletions(-) delete mode 100755 scripts/do-build-index create mode 100755 scripts/do-build-site (limited to 'scripts') diff --git a/scripts/do-build-index b/scripts/do-build-index deleted file mode 100755 index 4343370..0000000 --- a/scripts/do-build-index +++ /dev/null @@ -1,35 +0,0 @@ -#!/bin/sh - -POOLPAGE=/var/www/time.mattrude.com/status -TEMPLATESDIR=/var/www/time.mattrude.com/scripts/templates - -mkdir -p $POOLPAGE -cd $POOLPAGE -cat /dev/null > out.template - -echo "

NTP Hosts

-" >> out.template - -for X in `cat /var/www/time.mattrude.com/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 > $POOLPAGE/index.html - -# Build the indexs for the hosts. -for X in `cat /var/www/time.mattrude.com/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 -chown -R apache:apache $POOLPAGE diff --git a/scripts/do-build-site b/scripts/do-build-site new file mode 100755 index 0000000..4343370 --- /dev/null +++ b/scripts/do-build-site @@ -0,0 +1,35 @@ +#!/bin/sh + +POOLPAGE=/var/www/time.mattrude.com/status +TEMPLATESDIR=/var/www/time.mattrude.com/scripts/templates + +mkdir -p $POOLPAGE +cd $POOLPAGE +cat /dev/null > out.template + +echo "

NTP Hosts

+" >> out.template + +for X in `cat /var/www/time.mattrude.com/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 > $POOLPAGE/index.html + +# Build the indexs for the hosts. +for X in `cat /var/www/time.mattrude.com/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 +chown -R apache:apache $POOLPAGE -- cgit v1.2.3-59-ga6da