Skip to content

Commit

Permalink
call the signup script if FR24_SIGNUP env is set
Browse files Browse the repository at this point in the history
The old method via entry point no longer works because of the recent s6 changes.

Signed-off-by: Dirk Hohndel <[email protected]>
  • Loading branch information
dirkhh committed Sep 16, 2023
1 parent da2e4b3 commit 622485f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ docker run \
-e FEEDER_LONG="YOUR_FEEDER_LONG" \
-e FEEDER_ALT_FT="YOUR_FEEDER_ALT_FT" \
-e FR24_EMAIL="[email protected]" \
--entrypoint /scripts/signup.sh \
-e FR24_SIGNUP=1 \
ghcr.io/sdr-enthusiasts/docker-flightradar24:latest
```

Expand All @@ -55,6 +55,8 @@ Take a note of the sharing key, as you'll need it when launching the container.

### Manual Method

### THIS APPEARS TO BE BROKEN FOR NOW

If the script method fails (please let me know so I can fix it), you can sign up manually.

Temporarily run the container with the following command:
Expand Down
10 changes: 10 additions & 0 deletions rootfs/etc/s6-overlay/scripts/01-fr24feed
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ if [ -z "${FR24KEY}" ]; then
echo "ERROR: FR24KEY environment variable not set"
EXITCODE=1
fi
if [ -n "${FR24_SIGNUP}" ]; then
echo "even with missing keys, simply start the signup script"
EXITCODE=0
SIGNUP=1
fi
if [ $EXITCODE -ne 0 ]; then
exit 1
fi
Expand All @@ -26,6 +31,11 @@ if [ -n "${TZ}" ]; then
fi
printf "GMT" > /var/run/s6/container_environment/TZ

if [ "$SIGNUP" = "1" ]; then
bash /scripts/signup.sh
exit 0
fi

# Set up fr24feed
{
echo receiver="beast-tcp"
Expand Down

0 comments on commit 622485f

Please sign in to comment.