Skip to content

Commit

Permalink
Fix issue where docker-entrypoint.sh didn't check for existing tracka…
Browse files Browse the repository at this point in the history
…lert config file
  • Loading branch information
neilcook committed Aug 4, 2022
1 parent 5349ecc commit ce45122
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docker/wforce_image/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,11 @@ else
TRACKALERT_CMD="$TRACKALERT_CMD -v"
fi

# Check if they just supplied their own trackalert.conf file
if [[ -f /etc/wforce/trackalert.conf ]]; then
echo "Using supplied trackalert config file /etc/wforce/trackalert.conf"
TRACKALERT_CONFIG_FILE=/etc/wforce/trackalert.conf
fi
if [[ "x$TRACKALERT_CONFIG_FILE" == "x" ]]; then
if [[ "x$TRACKALERT_HTTP_PASSWORD" == "x" ]]; then
2>&1 echo "TRACKALERT_HTTP_PASSWORD environment variable must be set"
Expand Down

0 comments on commit ce45122

Please sign in to comment.