docker-meshviewer-cron/nodePoller.sh
stefan 647b5fd1c6
All checks were successful
continuous-integration/drone/push Build is passing
Add example Rifu File
2020-07-19 21:18:59 +00:00

13 lines
449 B
Bash

#!/bin/sh
for i in 4 5 6 7
do
for f in meshviewer #graph nodelist nodes
do
mkdir -p /opt/data/tdf$i/
curl http://$i.fftdf.de/$f.json -o /opt/data/tdf$i/$f.json || sed -i -e 's/"is_online":true/"is_online":false/g' /opt/data/tdf$i/$f.json
done
done
mkdir -p /opt/data/rifu/
curl https://git.freifunk-rhein-sieg.net/Freifunk-Troisdorf/ubnt-freifunk-map-api/raw/branch/master/example.json -o /opt/data/rifu/meshviewer.json