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

migrate2rocky.sh behind a proxy #202

Open
DaOs7 opened this issue Jul 4, 2023 · 4 comments
Open

migrate2rocky.sh behind a proxy #202

DaOs7 opened this issue Jul 4, 2023 · 4 comments

Comments

@DaOs7
Copy link

DaOs7 commented Jul 4, 2023

Hi. There are to "curl" commands in the script that doesn't work behind a proxy, to check de repos and to download de "gpg". You need to add manually to curl command the parameter '--proxy "http://proxy:port"' in order to work. Maybe will be useful to and a command parameter to insert the proxy to be able working behind a proxy.

@pajamian
Copy link
Collaborator

pajamian commented Jul 5, 2023

Try setting the ALL_PROXY environment variable, e.g.

ALL_PROXY=http://proxy:port ./migrate2rocky -r

Peter

@tuxmaster5000
Copy link

I have added this two lines in the scipt at the beginning:

export http_proxy=foo:bar
export https_proxy=foo:bar

will helps. When you use puppet, then you can deliver the file as an template and write:

<%- if @facts['PROXY_FACT'] -%>
export http_proxy=foo:bar
export https_proxy=foo:bar
<%- end -%>

@pajamian
Copy link
Collaborator

According to the curl docs setting ALL_PROXY should tell curl to use the corresponding proxy, did you try this? did it not work for you?

@DaOs7
Copy link
Author

DaOs7 commented Jul 23, 2023

I have not been able to test it again. I will do asap. But if this is the way... almost there is one. Thanks.

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

3 participants