instanceinfo.sh: Improved PeerTube support.
This commit is contained in:
parent
8a249722a9
commit
eb1af4b8ca
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# Print some basic info about fediverse instances.
|
# Print some basic info about fediverse instances.
|
||||||
|
|
||||||
# Version: 2019-07-16_1
|
# Version: 2019-07-16_2
|
||||||
|
|
||||||
if [[ -z "${1}" ]]; then
|
if [[ -z "${1}" ]]; then
|
||||||
echo "usage: ${0} DOMAIN" >&2
|
echo "usage: ${0} DOMAIN" >&2
|
||||||
|
@ -101,6 +101,8 @@ function main()
|
||||||
echo "Further info, maybe: https://${instance}/about/more"
|
echo "Further info, maybe: https://${instance}/about/more"
|
||||||
elif [[ "${implementation}" == "pixelfed" ]]; then
|
elif [[ "${implementation}" == "pixelfed" ]]; then
|
||||||
echo "Further info, maybe: https://${instance}/site/terms"
|
echo "Further info, maybe: https://${instance}/site/terms"
|
||||||
|
elif [[ "${implementation}" == "peertube" ]]; then
|
||||||
|
echo "Further info, maybe: https://${instance}/about/instance"
|
||||||
fi
|
fi
|
||||||
elif curl -sILf "${mastoinfo}" | grep -iq 'Content-Type: application/json'; then
|
elif curl -sILf "${mastoinfo}" | grep -iq 'Content-Type: application/json'; then
|
||||||
echo "Mastodon API found."
|
echo "Mastodon API found."
|
||||||
|
|
Loading…
Reference in New Issue