Skip to content
Snippets Groups Projects
Commit 4a293a09 authored by Pim van Nierop's avatar Pim van Nierop
Browse files

Update portal.properties init script

Underscores interfere with use as host name on tomcat
parent d1b8029b
No related branches found
No related tags found
No related merge requests found
......@@ -5,6 +5,6 @@ SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
VERSION=$(grep DOCKER_IMAGE_CBIOPORTAL ../.env | cut -d '=' -f 2-)
docker run --rm -it $VERSION cat /cbioportal-webapp/WEB-INF/classes/portal.properties | \
sed 's/db.host=.*/db.host=cbioportal_database:3306/g' | \
sed 's|db.connection_string=.*|db.connection_string=jdbc:mysql://cbioportal_database:3306/|g' \
sed 's/db.host=.*/db.host=cbioportal-database:3306/g' | \
sed 's|db.connection_string=.*|db.connection_string=jdbc:mysql://cbioportal-database:3306/|g' \
> portal.properties
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment