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: add --preserve-env=PATH to sudo command #31

Merged
merged 1 commit into from
Jun 13, 2022

Conversation

dicej
Copy link
Contributor

@dicej dicej commented Jun 13, 2022

This ensures that Nomad inherits the current user's PATH environment variable,
rather that the default sudo behavior of using a sanitized PATH.

This is necessary because the user may have installed bindle-server, traefik,
etc. locally but not system-wide. For example, cargo install installs in the
current user's home directory by default.

Signed-off-by: Joel Dice joel.dice@gmail.com

This ensures that Nomad inherits the current user's PATH environment variable,
rather that the default sudo behavior of using a sanitized PATH.

This is necessary because the user may have installed bindle-server, traefik,
etc. locally but not system-wide. For example, cargo install installs in the
current user's home directory by default.

Signed-off-by: Joel Dice <joel.dice@gmail.com>
@dicej dicej requested a review from adamreese June 13, 2022 21:44
@dicej dicej merged commit 2788c77 into fermyon:main Jun 13, 2022
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.

None yet

3 participants