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

Move sudo to only where needed to fix proxy issues #22

Closed
wants to merge 1 commit into from

Conversation

terkiterje
Copy link

I propose moving sudo to only those operations that need it rather than the whole script. This fixes being behind a corporate proxy server configured through environment variables which do not survive "sudo" without -E option. Additionally, if the curl request fails it is nice to see why (with the -S option), since the error message saying the distribution is not supported is misleading in the event of an network error.

@rvagg
Copy link
Contributor

rvagg commented Oct 10, 2014

as mentioned in #21 this isn't always going to work, it'll need wide testing across the distros we support (not just Ubuntu with this script) and also good feedback to the user if it fails.

@viniciuspires
Copy link

PS.: sudo -E keeps the current user environment variables.

@rvagg
Copy link
Contributor

rvagg commented Jul 4, 2015

sorry for the delay here, I'm going to say no on this one because sudo isn't available everywhere and I'd rather have the user invoke sudo rather than putting that in the script

we do need to document sudo -E in the README though

@rvagg rvagg closed this Jul 4, 2015
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