get-pleroma-instances.sh - gopher-lawn - The gopher lawn gopher directory proje… | |
git clone git://bitreich.org/gopher-lawn/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhf… | |
Log | |
Files | |
Refs | |
Tags | |
--- | |
get-pleroma-instances.sh (307B) | |
--- | |
1 #!/bin/sh | |
2 | |
3 JQ="jq" | |
4 | |
5 sed 's,",\\",g; s,$,\\n,' <<-EOF \ | |
6 | tr -d '\n' \ | |
7 | sed 's,^\(.*\)$,{"query":"\1"},' \ | |
8 | curl -s -H'Content-Type: application/json' --data-binary @- ht… | |
9 | $JQ -r '.data.nodes[].domain' | |
10 { | |
11 nodes(softwarename: "pleroma", status: "UP") { | |
12 domain | |
13 } | |
14 } | |
15 EOF |