Skip to content

Commit

Permalink
bump snap to handle issues with perms in mongosh (#498)
Browse files Browse the repository at this point in the history
## Issue
This PR bumps the snap revision to the latest to fix the permission
issues on mongosh

---------

Co-authored-by: Neha Oudin <[email protected]>
Co-authored-by: Neha Oudin <[email protected]>
  • Loading branch information
3 people authored Oct 3, 2024
1 parent a49f4df commit 0a16ca2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/charms/mongodb/v1/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def get_create_user_cmd(config: MongoConfiguration, mongo_path=MONGO_SHELL) -> L
"mongodb://localhost/admin",
"--quiet",
"--eval",
"db.createUser({"
'"db.createUser({'
f" user: '{config.username}',"
" pwd: passwordPrompt(),"
" roles:["
Expand All @@ -99,7 +99,7 @@ def get_create_user_cmd(config: MongoConfiguration, mongo_path=MONGO_SHELL) -> L
" ],"
" mechanisms: ['SCRAM-SHA-256'],"
" passwordDigestor: 'server',"
"})",
'})"',
]


Expand Down
2 changes: 1 addition & 1 deletion src/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class Config:
MONGOD_CONF_DIR = f"{MONGODB_SNAP_DATA_DIR}/etc/mongod"
MONGOD_CONF_FILE_PATH = f"{MONGOD_CONF_DIR}/mongod.conf"
CHARM_INTERNAL_VERSION_FILE = "charm_internal_version"
SNAP_PACKAGES = [("charmed-mongodb", "6/edge", 121)]
SNAP_PACKAGES = [("charmed-mongodb", "6/edge", 123)]

MONGODB_COMMON_PATH = Path("/var/snap/charmed-mongodb/common")

Expand Down

0 comments on commit 0a16ca2

Please sign in to comment.