From 62540457800cb331649273147668cb62deca04f2 Mon Sep 17 00:00:00 2001 From: Matthias Wirth Date: Wed, 22 Jan 2025 07:05:07 +0000 Subject: [PATCH] fix healtcheck when UAT_RECEIVER_HOST set but UAT_RECEIVER_PORT unset fixes https://github.com/sdr-enthusiasts/docker-piaware/issues/226 --- rootfs/scripts/healthcheck.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rootfs/scripts/healthcheck.sh b/rootfs/scripts/healthcheck.sh index 4873d43..2d57f68 100755 --- a/rootfs/scripts/healthcheck.sh +++ b/rootfs/scripts/healthcheck.sh @@ -65,7 +65,7 @@ fi # Make sure 978MHz data is being sent to flightaware if [[ -n "$UAT_RECEIVER_HOST" ]]; then # look for log messages from UAT_RECEIVER_PORT - FA_DUMP978_MSGS_SENT_PAST_HOUR=$(check_logs_for_msgs_sent_to_fa $UAT_RECEIVER_PORT 24) + FA_DUMP978_MSGS_SENT_PAST_HOUR=$(check_logs_for_msgs_sent_to_fa "${UAT_RECEIVER_PORT:-30978}" 24) if [[ "$FA_DUMP978_MSGS_SENT_PAST_HOUR" -gt 0 ]]; then echo "$FA_DUMP978_MSGS_SENT_PAST_HOUR dump978 messages sent in past 2 hours, OK." else