Skip to content

Commit 79eb184

Browse files
committed
Added unique key to DB name
* Fixes provisioning error caused by non-unique DB name
1 parent 7c4f93d commit 79eb184

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

MtdrSpring/utils/main-setup.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ while ! state_done RUN_NAME; do
8686
# Validate run name. Must be between 1 and 13 characters, only letters or numbers, starting with letter
8787
if [[ "$DN" =~ ^[a-zA-Z][a-zA-Z0-9]{0,12}$ ]]; then
8888
state_set RUN_NAME `echo "$DN" | awk '{print tolower($0)}'`
89-
state_set MTDR_DB_NAME "$(state_get RUN_NAME)o"
89+
state_set MTDR_DB_NAME "$(state_get RUN_NAME)$(state_get MTDR_KEY)"
9090
else
9191
echo "Error: Invalid directory name $RN. The directory name must be between 1 and 13 characters,"
9292
echo "containing only letters or numbers, starting with a letter. Please restart the workshop with a valid directory name."

0 commit comments

Comments
 (0)