Skip to content

Commit

Permalink
Fix entrypoint.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin Ngai committed Sep 28, 2023
1 parent a2a64eb commit ad7210b
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions docker/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,11 @@ pygeoapi openapi generate ${PYGEOAPI_CONFIG} --output-file ${PYGEOAPI_OPENAPI}
if [ $? -ne 0 ]; then
error "OpenAPI document could not be generated ERROR"
echo "Using default OpenAPI document"
DEFAULT_PYGEOAPI_OPENAPI=`echo $PYGEOAPI_CONFIG | sed 's/deploy\/nightly/deploy/\default/'`
cp $DEFAULT_PYGEOAPI_OPENAPI $PYGEOAPI_OPENAPI
DEFAULT_PYGEOAPI_OPENAPI=`echo ${PYGEOAPI_OPENAPI} | sed 's/deploy\/nightly/deploy/\default/'`
echo "DEFAULT_PYGEOAPI_OPENAPI is: $DEFAULT_PYGEOAPI_OPENAPI"
cp $DEFAULT_PYGEOAPI_OPENAPI ${PYGEOAPI_OPENAPI}
fi

[[ $? -ne 0 ]] && error "OpenAPI document could not be generated ERROR"

echo "OpenAPI document generated. continue to pygeoapi..."

case ${entry_cmd} in
Expand Down

0 comments on commit ad7210b

Please sign in to comment.