mirror of
https://github.com/nextcloud/all-in-one.git
synced 2026-06-03 01:10:08 +00:00
Agent-Logs-Url: https://github.com/nextcloud/all-in-one/sessions/c71fba87-d463-4682-9cb3-abb659b2ca40 Co-authored-by: szaimen <42591237+szaimen@users.noreply.github.com>
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
|