Skip to content

Commit

Permalink
Add HTTP_PROXY support for gpg
Browse files Browse the repository at this point in the history
Signed-off-by: ibauchet <[email protected]>
  • Loading branch information
ibcht committed Jan 9, 2025
1 parent e28298a commit 04d471e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion factory/installScripts/node/default.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ ARCH= && dpkgArch="$(dpkg --print-architecture)" \
&& savedAptMark="$(apt-mark showmanual)" \
&& apt-get update && apt-get install -y curl wget gnupg dirmngr xz-utils libatomic1 --no-install-recommends \
&& rm -rf /var/lib/apt/lists/* \
&& keyserver_options=$( [[ -n $HTTP_PROXY ]] && echo "--keyserver-options http-proxy=$HTTP_PROXY" || echo "" ) \
&& for key in \
4ED778F539E3634C779C87C6D7062848A1AB005C \
141F07595B7B3FFE74309A937405533BE57C7D57 \
Expand All @@ -34,7 +35,7 @@ ARCH= && dpkgArch="$(dpkg --print-architecture)" \
A363A499291CBBC940DD62E41F10027AF002F8B0 \
C0D6248439F1D5604AAFFB4021D900FFDB233756 \
; do \
gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys "$key" || \
gpg --batch --keyserver hkps://keys.openpgp.org $keyserver_options --recv-keys "$key" || \
gpg --batch --keyserver keyserver.ubuntu.com --recv-keys "$key" ; \
done \
&& curl -fsSLO --compressed "https://nodejs.org/dist/v$1/node-v$1-linux-$ARCH.tar.xz" \
Expand Down

0 comments on commit 04d471e

Please sign in to comment.