summaryrefslogtreecommitdiffstats
path: root/retiolum/scripts/adv_graphgen/scripts/all-the-graphs
diff options
context:
space:
mode:
Diffstat (limited to 'retiolum/scripts/adv_graphgen/scripts/all-the-graphs')
-rwxr-xr-xretiolum/scripts/adv_graphgen/scripts/all-the-graphs13
1 files changed, 13 insertions, 0 deletions
diff --git a/retiolum/scripts/adv_graphgen/scripts/all-the-graphs b/retiolum/scripts/adv_graphgen/scripts/all-the-graphs
new file mode 100755
index 00000000..3368d145
--- /dev/null
+++ b/retiolum/scripts/adv_graphgen/scripts/all-the-graphs
@@ -0,0 +1,13 @@
+#!/bin/bash
+
+EXTERNAL_FOLDER=${EXTERNAL_FOLDER:-/var/www/euer.krebsco.de/graphs/retiolum}
+INTERNAL_FOLDER=${INTERNAL_FOLDER:-/var/www/euer/graphs/retiolum}
+GEOCTIYDB="${GEOCITYDB:-}"
+
+if test -n "$GEOCITYDB";then
+ # creates a marker file
+ # TODO: copy map.html from
+ tinc-stats2json | add-geodata > "$INTERNAL_FOLDER/marker.json"
+fi
+build-graphs anonymous "$EXTERNAL_FOLDER"
+build-graphs complete "$INTERNAL_FOLDER"