Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: chdir to $SNAP before running command #50

Merged
merged 1 commit into from
Oct 2, 2024
Merged

Conversation

Gu1nness
Copy link
Contributor

@Gu1nness Gu1nness commented Oct 2, 2024

Issue

Could not start shell as root in mongos because of directory permission issues.

Solution

cd to ${SNAP} before running the command.
Also, shellcheck and move from insecure $@ to $*.

Allows to run the command because mongosh tries to cd to itself with the
snap_daemon user.
@Gu1nness Gu1nness added this pull request to the merge queue Oct 2, 2024
Merged via the queue into 6/edge with commit 6a0792e Oct 2, 2024
3 checks passed
@Gu1nness Gu1nness deleted the fix/cd-to-snap branch October 2, 2024 13:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants