diff options
-rwxr-xr-x | scripts/do-build-index | 4 | ||||
-rw-r--r-- | scripts/templates/index-head | 2 |
2 files changed, 4 insertions, 2 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 diff --git a/scripts/templates/index-head b/scripts/templates/index-head index fd2aa33..37fc159 100644 --- a/scripts/templates/index-head +++ b/scripts/templates/index-head @@ -1,7 +1,7 @@ <head> <title>Time Server Status</title> <link rel="stylesheet" type="text/css" href="style.css"/> - <link rel="icon" href="favicon.ico" type="image/x-icon" /> + <link rel="icon" href="/favicon.ico" type="image/x-icon" /> </head> <html> <title>experimental ntp tech info</title> |