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

feat: Do not change permissions on existing data directory #49

Closed
wants to merge 6 commits into from

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 $*.

@Gu1nness Gu1nness requested review from MiaAltieri and Mehdi-Bendriss and removed request for MiaAltieri October 2, 2024 13:28
Copy link
Contributor

@Mehdi-Bendriss Mehdi-Bendriss left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks Neha - left a question

@@ -4,13 +4,14 @@
export PBM_MONGODB_URI="$(snapctl get pbm-uri)"

if [[ $(id -u) == "0" ]]; then
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this still needed?

@Gu1nness Gu1nness closed this Oct 2, 2024
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.

2 participants