Improved GangGo support.

This commit is contained in:
tastytea 2019-06-25 02:42:45 +02:00
parent 9fd1bb773e
commit fa2a7cc745
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
1 changed files with 4 additions and 1 deletions

View File

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