aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/do-build-index
diff options
context:
space:
mode:
authorMatt Rude <[email protected]>2011-05-22 10:43:16 -0500
committerMatt Rude <[email protected]>2011-05-22 10:43:16 -0500
commitbc3bcde871898b2254c4a2fbf21c8348f0ab55ed (patch)
tree51a71e8e3f624d90ce46cae9a4a423694de5ee6c /scripts/do-build-index
parent0faf0a37cff21b55ed9aca451560569bc816b384 (diff)
downloadtime.mattrude.com-bc3bcde871898b2254c4a2fbf21c8348f0ab55ed.tar.gz
time.mattrude.com-bc3bcde871898b2254c4a2fbf21c8348f0ab55ed.tar.bz2
time.mattrude.com-bc3bcde871898b2254c4a2fbf21c8348f0ab55ed.zip
small tweeks
Diffstat (limited to 'scripts/do-build-index')
-rwxr-xr-xscripts/do-build-index4
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/do-build-index b/scripts/do-build-index
index 8312f4e..4343370 100755
--- a/scripts/do-build-index
+++ b/scripts/do-build-index
@@ -3,6 +3,7 @@
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
@@ -20,7 +21,7 @@ do
done
sync
-cat $TEMPLATESDIR/index-head out.template $TEMPLATESDIR/index-tail > index.html
+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`
@@ -31,3 +32,4 @@ do
cat $TEMPLATESDIR/index-head out.template $TEMPLATESDIR/index-tail > $X.html
rm -f out.template
done
+chown -R apache:apache $POOLPAGE