Changing default port does not work the second time
Bug #924019 reported by
Clint Byrum
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
mongodb (Juju Charms Collection) |
Fix Released
|
Undecided
|
Juan L. Negron |
Bug Description
in hooks/install
sed -e "s/#master = true/master = true/" \
-e "s/bind_
-e "s/#port = 27017/port = ${DEFAULT_PORT}/" \
-i /etc/mongodb.conf
If one has already changed the default port, #port = 27017 will not appear anymore, so the new port won't be activated.
Should include the current setting always, and make the # optional.
Changed in mongodb (Juju Charms Collection): | |
status: | New → Fix Released |
To post a comment you must log in.
Actually this code won't even be executed when the port is changed later because it only happens in install.