diff --git a/openshift/templates/runtime/s2i/bin/run b/openshift/templates/runtime/s2i/bin/run index 0c90e8fc..121b2d3a 100644 --- a/openshift/templates/runtime/s2i/bin/run +++ b/openshift/templates/runtime/s2i/bin/run @@ -45,7 +45,7 @@ getApiUrl() { # Results in API_URL=https://django-devex-von-dev.pathfinder.gov.bc.ca/api/v1/ # ================================================================================ if [ ! -z "${API_SERVICE_NAME}" ]; then - _SERVICE_NAME="$(tr '[:lower:]' '[:upper:]' <<< ${API_SERVICE_NAME/-/_})" + _SERVICE_NAME="$(tr '[:lower:]' '[:upper:]' <<< ${API_SERVICE_NAME//-/_})" _SERVICE_HOST_NAME=${_SERVICE_NAME}_SERVICE_HOST _SERVICE_PORT_NAME=${_SERVICE_NAME}_SERVICE_PORT if [ ! -z "${!_SERVICE_HOST_NAME}" ]; then