Changing default port does not work the second time

Bug #924019 reported by Clint Byrum
6
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_ip/#bind_ip/" \
    -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.

Revision history for this message
Clint Byrum (clint-fewbar) wrote :

Actually this code won't even be executed when the port is changed later because it only happens in install.

Revision history for this message
Juan L. Negron (negronjl) wrote :

Working on this now.

-Juan

Changed in mongodb (Juju Charms Collection):
assignee: nobody → Juan L. Negron (negronjl)
Changed in mongodb (Juju Charms Collection):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.