aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xscripts/do-build-graphs4
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/do-build-graphs b/scripts/do-build-graphs
index 1b3b5de..5ac970d 100755
--- a/scripts/do-build-graphs
+++ b/scripts/do-build-graphs
@@ -5,6 +5,10 @@ RRDPAGE=/var/www/time.mattrude.com/rrd
GRAPHS=/var/www/time.mattrude.com/graphs
SCRIPTS=/var/www/time.mattrude.com/scripts
+if [ ! -e $GRAPHS ]; then
+ mkdir -p $GRAPHS
+fi
+
cd ${RRDPAGE}
${RRD_BIN}/rrdtool graph \