summaryrefslogtreecommitdiffstats
path: root/retiolum/scripts/adv_graphgen/scripts/all-the-graphs
blob: 3368d145daab0d9f3250ac117cbf971df8a4aedf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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"