Skip to content

Commit

Permalink
Fix entrypoint script
Browse files Browse the repository at this point in the history
  • Loading branch information
hb0 committed Jan 31, 2024
1 parent 8c9c88b commit 92adc58
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions collector/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ main() {
loadApiParameters
loadCollectorParameters
loadConfig
waitForDatabase "mongo"
waitForDependency "mongo" 27017
startApi
}

Expand All @@ -43,7 +43,8 @@ loadApiParameters() {
fi

if [ -z $CYFACE_API_ENDPOINT ]; then
CYFACE_API_ENDPOINT="/api/v4/"
echo "Unable to find API Endpoint. Please set the environment variable CYFACE_API_ENDPOINT to an appropriate value! API will not start!"
exit 1
fi
}

Expand All @@ -59,8 +60,8 @@ loadAuthParameters() {
fi

if [ -z CYFACE_OAUTH_SECRET ]; then
echo "Unable to find OAuth client secret. Please set the environment variable CYFACE_OAUTH_SECRET to an appropriate value! API will not start!"
exit 1
echo "Unable to find OAuth client secret. Please set the environment variable CYFACE_OAUTH_SECRET to an appropriate value! API will not start!"
exit 1
fi

if [ -z "$CYFACE_OAUTH_SITE" ]; then
Expand Down

0 comments on commit 92adc58

Please sign in to comment.