Skip to content

Commit

Permalink
syntax fix and verbose echos
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin Ngai committed Oct 4, 2023
1 parent ad7210b commit cbf1d75
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 @@ -57,10 +57,9 @@ 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_OPENAPI} | sed 's/deploy\/nightly/deploy/\default/'`
echo "DEFAULT_PYGEOAPI_OPENAPI is: $DEFAULT_PYGEOAPI_OPENAPI"
cp $DEFAULT_PYGEOAPI_OPENAPI ${PYGEOAPI_OPENAPI}
DEFAULT_PYGEOAPI_OPENAPI=`echo ${PYGEOAPI_OPENAPI} | sed 's|deploy/nightly|deploy/default|'`
echo "Using default OpenAPI document with DEFAULT_PYGEOAPI_OPENAPI=${DEFAULT_PYGEOAPI_OPENAPI}"
cp ${DEFAULT_PYGEOAPI_OPENAPI} ${PYGEOAPI_OPENAPI}
fi

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

0 comments on commit cbf1d75

Please sign in to comment.