mirror of https://gitee.com/bigwinds/arangodb
follow redirect for dumpagency
This commit is contained in:
parent
5ae2dcaa08
commit
4b8148edee
|
@ -1,6 +1,6 @@
|
|||
#!/bin/bash
|
||||
if [ "$*" == "" ] ; then
|
||||
curl -s X POST http://localhost:4001/_api/agency/read -d '[["/"]]' | jq .
|
||||
curl -Ls http://localhost:4001/_api/agency/read -d '[["/"]]' | jq .
|
||||
else
|
||||
curl -s -X POST http://localhost:4001/_api/agency/read -d '[["/"]]' | jq $*
|
||||
curl -Ls http://localhost:4001/_api/agency/read -d '[["/"]]' | jq $*
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue