From 05bf2c8be209e619f8c9e727fd1353198b042642 Mon Sep 17 00:00:00 2001 From: makefu Date: Wed, 9 Sep 2015 14:41:38 +0200 Subject: begin packaging of tinc_stats --- retiolum/scripts/adv_graphgen/scripts/all-the-graphs | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 retiolum/scripts/adv_graphgen/scripts/all-the-graphs (limited to 'retiolum/scripts/adv_graphgen/scripts/all-the-graphs') 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" -- cgit v1.2.3 From 219fab970c7fe455d3dd9bc48e909d96a234046b Mon Sep 17 00:00:00 2001 From: makefu Date: Thu, 10 Sep 2015 15:48:38 +0200 Subject: adv_graphgen: finish packaging --- retiolum/scripts/adv_graphgen/scripts/all-the-graphs | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'retiolum/scripts/adv_graphgen/scripts/all-the-graphs') 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" -- cgit v1.2.3