|
sudo -iu "$_REMOTE_USER" <<EOF |
is dropping all environment variables from the current shell. So we won't have http proxy settings available when calling curl
|
curl --proto '=https' --tlsv1.2 -sSf https://get-ghcup.haskell.org | sh |
leading to
=> => # curl: (6) Could not resolve host: get-ghcup.haskell.org
So so this basically a feature request to support using this feature behind a proxy that requires external configuration via HTTP_PROXY, HTTPS_PROXY environment variables.