Skip to content
This repository has been archived by the owner on Dec 7, 2023. It is now read-only.

skip root requirement for ignite version #409

Merged
merged 1 commit into from
Sep 9, 2019

Conversation

chanwit
Copy link
Member

@chanwit chanwit commented Sep 7, 2019

Root user should not be a requirement when doing ignite run.

How I did:
Use a simple check for cmd.Name() to see if it is version, then skip the root check.

To verify:
run ignite version without sudo.

This PR fixes #406.

Signed-off-by: Chanwit Kaewkasi chanwit@gmail.com

@chanwit chanwit requested a review from twelho as a code owner September 7, 2019 15:44
Signed-off-by: Chanwit Kaewkasi <chanwit@gmail.com>
@chanwit
Copy link
Member Author

chanwit commented Sep 7, 2019

kindly ping @stealthybox

@dlespiau PTAL if this solves your problem.

Copy link
Contributor

@stealthybox stealthybox left a comment

Choose a reason for hiding this comment

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

👍
We should do a followup to allow ignite help and ignite <anything> --help to run as non-root.

@stealthybox
Copy link
Contributor

I did try this out locally.

@stealthybox stealthybox merged commit 51bb450 into weaveworks:master Sep 9, 2019
@chanwit chanwit removed the request for review from twelho September 16, 2019 13:49
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ignite shouldn't ask for root permissions just to display its version
2 participants