Skip to content

Commit

Permalink
reverted some changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ShixinWu16 committed Jul 29, 2024
1 parent 89c6aac commit 1933e3c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
8 changes: 7 additions & 1 deletion classes/OpenXdmod/Setup/SupremmDbSetup.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,11 @@ public function handle()
'DB Admin Password:'
);

$xdmod_host = $this->console->prompt(
'XDMoD Server name:',
'xdmod.xdmod_default'
);

try {

// The SUPReMM databases reuse configuration sections from
Expand All @@ -72,7 +77,8 @@ public function handle()
'db_host' => $settings[$section . '_host'],
'db_port' => $settings[$section . '_port'],
'db_user' => $settings[$section . '_user'],
'db_pass' => $settings[$section . '_pass']
'db_pass' => $settings[$section . '_pass'],
'xdmod_host' => $xdmod_host
);

$this->createDatabases(
Expand Down
1 change: 1 addition & 0 deletions tests/integration/scripts/xdmod-setup.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ selectMenuOption 9
selectMenuOption d
answerQuestion {DB Admin Username:} root
providePassword {DB Admin Password:} {}
answerQuestion {XDMoD Server name:} xdmod.xdmod_default
provideInput {MongoDB uri*} {mongodb://xdmod:uvVA6bIC9DMts30ZiLRaH@mongodb:27017/supremm?authSource=auth}
provideInput {database name*} {supremm}
confirmFileWrite yes
Expand Down

0 comments on commit 1933e3c

Please sign in to comment.