#!/bin/bash

CDIR=$(cd "$(dirname "$0")"; pwd)
FLASH="$CDIR/ffflash.py"

function run()
{
    WWWDIR="$1"
    APIFILE="$2"
    NODELIST="$3"

    $FLASH \
        "$WWWDIR/$APIFILE" \
        "-n" "$NODELIST" \
        "-s" \
            "$WWWDIR/inc/contact.yaml" \
            "$WWWDIR/inc/services.yaml" \
            "$WWWDIR/inc/support.club.yaml" \
            "$WWWDIR/inc/support.donations.campaigns.yaml" \
            "$WWWDIR/inc/timeline.yaml"
}


run "/var/www/ffapi-wiesbaden" "ffapi_wi.json" "http://map.wiesbaden.freifunk.net/data/nodelist.json"
run "/var/www/ffapi-mainz" "ffapi_mz.json" "http://map.freifunk-mainz.de/data/nodelist.json"

Add some lanch script for our current configuration.
Add some lanch script for our current configuration.
