Ubuntu Pastebin

Paste from BenLue at Thu, 2 Apr 2015 02:06:54 +0000

Download as text
1
2
3
4
5
6
7
#!/bin/bash
# generate nodeinfo.json
/usr/local/bin/alfred-json -z -r 158 > /opt/ff3l/db/nodeinfo.json
# generate statistics.json
/usr/local/bin/alfred-json -z -r 159 > /opt/ff3l/db/statistics.json
#
jq -s '(.[0] | to_entries | map({key: .value.node_id, value: {nodeinfo: .value}}) | from_entries) * (.[1] | to_entries | map({key: .value.node_id, value: {statistics: .value}}) | from_entries)' nodeinfo.json statistics.json > /opt/ff3l/db/ff3l.json
Download as text