Skip to content

Commit

Permalink
fix healtcheck when UAT_RECEIVER_HOST set but UAT_RECEIVER_PORT unset
Browse files Browse the repository at this point in the history
fixes #226
  • Loading branch information
wiedehopf committed Jan 22, 2025
1 parent 3f6931d commit 6254045
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rootfs/scripts/healthcheck.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6254045

Please sign in to comment.