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

dev: chown commandhistory to correct user during devcontainer creation #5166

Merged

Conversation

eric-hoffmann
Copy link
Contributor

@eric-hoffmann eric-hoffmann commented Mar 3, 2025

What this PR does / why we need it:

the /home/vscode/commandhistory directory in the devcontainer is currently owned by root, which prevents bash from creating and writing to .bash_history file when running as vscode user. This PR adds that path to the chown command run during container creation.

Which issue(s) this PR fixes:

Fixes #4956

Testing

Added this to my local devcontainer.json and rebuilt it. Folder has correct owner, and bash error no longer appears.

@github-actions github-actions bot added the dev Internal development label Mar 3, 2025
@eric-hoffmann eric-hoffmann marked this pull request as ready for review March 3, 2025 04:59
@michael-genson michael-genson enabled auto-merge (squash) March 3, 2025 05:15
@michael-genson michael-genson merged commit 5f766a8 into mealie-recipes:mealie-next Mar 3, 2025
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dev Internal development
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] - Devcontainer permissions on first run incorrect for bash history
2 participants