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

Using setup script behind company proxy #120

Closed
KoenVingerhoets opened this issue Aug 26, 2015 · 3 comments
Closed

Using setup script behind company proxy #120

KoenVingerhoets opened this issue Aug 26, 2015 · 3 comments

Comments

@KoenVingerhoets
Copy link

Hi,
I modified the curl -sL https://deb.nodesource.com/setup | sudo bash - line to curl -k https://deb.nodesource.com/setup | sudo bash - to pass our company proxy.

I also received the "trusty" is not supported message, so I changed to curl -k https://deb.nodesource.com/setup | sudo -E bash -. However, my issue is not the -E but the fact that the setup script doesn't copy my -k parameter.

Wouldn't it be better if the the curl line in setup used to check the eligibility would copy all parameters from the initial curl? (no clue if it's possible... but atm I'm stuck :)

@KoenVingerhoets
Copy link
Author

Worked around it by sudo vim /etc/apt/apt.confand adding Acquire::https::deb.nodesource.com::Verify-Peer "false";

@retrohacker
Copy link
Contributor

Hey @KoenVingerhoets,

Instead of piping directly into shell try this:

    curl -k https://deb.nodesource.com/setup > setup.sh
    vim setup.sh
    # edit setup.sh as needed
    chmod +x setup.sh
    ./setup.sh

I don't think it is possible for bash scripts to see the flags passed to other commands that pipe to it.

@retrohacker
Copy link
Contributor

We are adding a FAQ to the README.md that covers using proxies.

It will land in #308

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

No branches or pull requests

2 participants