Skip to content

Commit

Permalink
handle $TAR1090_AISCATCHER_SERVER values that end on /geojson
Browse files Browse the repository at this point in the history
  • Loading branch information
kx1t committed May 10, 2024
1 parent fc87f7d commit 3c5f34b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion rootfs/etc/s6-overlay/startup.d/04-tar1090-configure
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,8 @@ if [[ -n "$TAR1090_ROUTEAPIURL" ]]; then
fi

if [[ -n "$TAR1090_AISCATCHER_SERVER" ]]; then
echo "aiscatcher_server = \"$TAR1090_AISCATCHER_SERVER\";"
# remove /geojson suffix if present
echo "aiscatcher_server = \" ${TAR1090_AISCATCHER_SERVER//\/geojson/}\";"
echo "aiscatcher_refresh = ${TAR1090_AISCATCHER_REFRESH:-15};"
fi

Expand Down

0 comments on commit 3c5f34b

Please sign in to comment.