Files
nextcloud/Containers/notify-push/healthcheck.sh
2026-05-11 10:10:26 +00:00

15 lines
266 B
Bash

#!/bin/bash
# SPDX-FileCopyrightText: 2023 Nextcloud GmbH <https://nextcloud.com>
# SPDX-License-Identifier: AGPL-3.0-only
if [ "$AIO_LOG_LEVEL" = 'debug' ]; then
set -x
fi
if ! nc -z "$NEXTCLOUD_HOST" 9001; then
exit 0
fi
nc -z 127.0.0.1 7867 || exit 1