diff options
author | makefu <makefu@pnp.retiolum> | 2015-09-10 15:48:38 +0200 |
---|---|---|
committer | makefu <makefu@pnp.retiolum> | 2015-09-10 15:48:50 +0200 |
commit | 219fab970c7fe455d3dd9bc48e909d96a234046b (patch) | |
tree | 9c41da16268c27d111cb98051fbd9769444bb2db /retiolum/scripts/adv_graphgen/scripts/all-the-graphs | |
parent | 7ba002c6424034390d1ea8c92e8eaacbfd482383 (diff) |
adv_graphgen: finish packaging
Diffstat (limited to 'retiolum/scripts/adv_graphgen/scripts/all-the-graphs')
-rwxr-xr-x | retiolum/scripts/adv_graphgen/scripts/all-the-graphs | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/retiolum/scripts/adv_graphgen/scripts/all-the-graphs b/retiolum/scripts/adv_graphgen/scripts/all-the-graphs index 3368d145..889a9fe0 100755 --- a/retiolum/scripts/adv_graphgen/scripts/all-the-graphs +++ b/retiolum/scripts/adv_graphgen/scripts/all-the-graphs @@ -2,11 +2,16 @@ EXTERNAL_FOLDER=${EXTERNAL_FOLDER:-/var/www/euer.krebsco.de/graphs/retiolum} INTERNAL_FOLDER=${INTERNAL_FOLDER:-/var/www/euer/graphs/retiolum} -GEOCTIYDB="${GEOCITYDB:-}" +export GEODB="${GEODB:-}" +export TINC_HOSTPATH=${TINC_HOSTPATH:-~/painload/retiolum/hosts} +mapfile="$INTERNAL_FOLDER/map.html" if test -n "$GEOCITYDB";then - # creates a marker file - # TODO: copy map.html from + if test ! -e "$mapfile";then + echo "copying map to $map.html" + copy-map "$mapfile" + fi + echo "creating geodata database" tinc-stats2json | add-geodata > "$INTERNAL_FOLDER/marker.json" fi build-graphs anonymous "$EXTERNAL_FOLDER" |