Skip to content
Snippets Groups Projects
Commit 51a02fb4 authored by Bartek Wrona's avatar Bartek Wrona
Browse files

Improved database name normalization using branch name as an input

parent f48f5913
No related branches found
No related tags found
4 merge requests!456Release candidate v1 24,!230Setup monitoring with pghero,!135Enable postgres monitoring on CI server,!38Hivemind ci separate sync
......@@ -9,7 +9,10 @@ HIVEMIND_HTTP_PORT=$4
PYTHONUSERBASE=./local-site
DB_NAME=${HIVEMIND_DB_NAME/-/_}
DB_NAME=${HIVEMIND_DB_NAME//-/_}
DB_NAME=${DB_NAME//\[/_}
DB_NAME=${DB_NAME//]/_}
DB_URL=$HIVEMIND_POSTGRESQL_CONNECTION_STRING/$DB_NAME
echo Attempting to start hive server listening on $HIVEMIND_HTTP_PORT port...
......
......@@ -9,7 +9,9 @@ HIVEMIND_MAX_BLOCK=$4
PYTHONUSERBASE=./local-site
DB_NAME=${HIVEMIND_DB_NAME/-/_}
DB_NAME=${HIVEMIND_DB_NAME//-/_}
DB_NAME=${DB_NAME//\[/_}
DB_NAME=${DB_NAME//]/_}
DB_URL=$HIVEMIND_POSTGRESQL_CONNECTION_STRING/$DB_NAME
echo Corrected db name $DB_NAME
echo Corrected db url $DB_URL
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment