Skip to content

Commit f433c6d

Browse files
authored
Merge pull request #18 from oracle/springboot-v1.0.1
Added unique key to DB name
2 parents 7c4f93d + 79eb184 commit f433c6d

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)