Skip to content

Commit

Permalink
Added quotes around the mongo passwords to support complicated passwo…
Browse files Browse the repository at this point in the history
…rds and commands still work correctly.
  • Loading branch information
bishopbm1 committed Oct 29, 2020
1 parent 41c5b96 commit 82a594b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plans/upgrade_mongodb.pp
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
# stop stackstorm
run_command('st2ctl stop', $targets)

$mongo_cmd = "mongo ${mongo_admin_db} --username ${mongo_username} --password ${mongo_password} --quiet"
$mongo_cmd = "mongo ${mongo_admin_db} --username ${mongo_username} --password '${mongo_password}' --quiet"

# set MongoDB feature compatibility to 3.4
$start_ver = $upgrade_version_start
Expand Down

0 comments on commit 82a594b

Please sign in to comment.