Improved GangGo support.
This commit is contained in:
parent
9fd1bb773e
commit
fa2a7cc745
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# Print some basic info about fediverse instances.
|
# Print some basic info about fediverse instances.
|
||||||
|
|
||||||
# Version: 2019-06-25_1
|
# Version: 2019-06-25_2
|
||||||
|
|
||||||
if [[ -z "${1}" ]]; then
|
if [[ -z "${1}" ]]; then
|
||||||
echo "usage: ${0} DOMAIN" >&2
|
echo "usage: ${0} DOMAIN" >&2
|
||||||
|
@ -74,6 +74,9 @@ function main()
|
||||||
|
|
||||||
# shellcheck disable=SC2155
|
# shellcheck disable=SC2155
|
||||||
local admins=$(jq -r ".metadata.staffAccounts" <<<"${json}")
|
local admins=$(jq -r ".metadata.staffAccounts" <<<"${json}")
|
||||||
|
if [[ "${admins}" == "null" ]]; then
|
||||||
|
admins=$(jq -r ".metadata.adminAccount" <<<"${json}")
|
||||||
|
fi
|
||||||
[[ "${admins}" != "null" ]] && echo "Admins: ${admins}"
|
[[ "${admins}" != "null" ]] && echo "Admins: ${admins}"
|
||||||
|
|
||||||
echo -n "Number of users: "
|
echo -n "Number of users: "
|
||||||
|
|
Loading…
Reference in New Issue