mirror of
https://github.com/nextcloud/all-in-one.git
synced 2026-06-01 16:30:09 +00:00
Agent-Logs-Url: https://github.com/nextcloud/all-in-one/sessions/c71fba87-d463-4682-9cb3-abb659b2ca40 refactor: deduplicate resolveHostname into DataConst Agent-Logs-Url: https://github.com/nextcloud/all-in-one/sessions/42427bd4-05e6-4197-bdb7-db3761815113 refactor: move resolveHostname from DataConst into new NetworkHelper class Agent-Logs-Url: https://github.com/nextcloud/all-in-one/sessions/73cb1d89-ab85-43b6-adfe-a90c00ad60a1
17 lines
650 B
Bash
17 lines
650 B
Bash
#!/bin/bash
|
|
|
|
if [ "$AIO_LOG_LEVEL" = 'debug' ]; then
|
|
set -x
|
|
fi
|
|
|
|
nc -z 127.0.0.1 8081 || nc -z ::1 8081 || exit 1
|
|
nc -z 127.0.0.1 8188 || exit 1
|
|
nc -z 127.0.0.1 4222 || exit 1
|
|
nc -z 127.0.0.1 "$TALK_PORT" || nc -z ::1 "$TALK_PORT" || exit 1
|
|
eturnalctl status || exit 1
|
|
# Verify that the signaling server is actually serving requests, not just
|
|
# listening on the TCP port (which nc -z above only tests for open port).
|
|
# SC2102: [::1] is an IPv6 address literal in a URL, not a character-range glob.
|
|
# shellcheck disable=SC2102
|
|
wget -q -O /dev/null http://127.0.0.1:8081/api/v1/stats || wget -q -O /dev/null http://[::1]:8081/api/v1/stats || exit 1
|