[SERVER-29686] Remove /var/lib/mongodb from mongodb-org[-unstable] deb metapackage Created: 16/Jun/17 Updated: 30/Oct/23 Resolved: 07/Aug/17 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Packaging |
| Affects Version/s: | 3.5.8 |
| Fix Version/s: | 3.4.9, 3.5.12 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Ramon Fernandez Marina | Assignee: | Zakhar Kleyman |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||||||
| Operating System: | Linux | ||||||||||||
| Backport Requested: |
v3.4, v3.2, v3.0
|
||||||||||||
| Sprint: | Build 2017-07-10, Build Ready | ||||||||||||
| Participants: | |||||||||||||
| Case: | (copied to CRM) | ||||||||||||
| Description |
|
The ongodb-org[-unstable] deb metapackage includes a /var/lib/mongodb directory owned by root. When installing this package, the mongodb-org[-unstable]-server package would
so MongoDB would run. However, after the changes in The proposed solution is to remove /var/lib/mongodb from the mongodb-org[-unstable] metapackage. |
| Comments |
| Comment by Ramon Fernandez Marina [ 05/Sep/17 ] | ||||||||||||||
|
Author: {'username': u'zakhark', 'name': u'Zakhar Kleyman', 'email': u'zakhar.kleyman@mongodb.com'}Message: | ||||||||||||||
| Comment by Githook User [ 07/Aug/17 ] | ||||||||||||||
|
Author: {'username': 'zakhark', 'email': 'zakhar.kleyman@mongodb.com', 'name': 'Zakhar Kleyman'}Message: | ||||||||||||||
| Comment by Ernie Hershey [ 20/Jun/17 ] | ||||||||||||||
|
Ramon and I just spent some time on this. It's not clear how exactly the /var/lib/mongo directory is getting created by the metapackage. It may be difficult to stop that behavior if it's being done automatically by some deep layer of the debian package-building tools or if we can't figure out how/why it's being done. Ramon mentioned a decent alternative fix - adding logic to the chown in the server package postinst that also chowns the directory if the owner is root instead of only chowning it if it doesn't already exist.
|