Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
lxc
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
lxc
Commits
e613d684
Unverified
Commit
e613d684
authored
Feb 28, 2019
by
Stéphane Graber
Committed by
GitHub
Feb 28, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2882 from misterunknown/master
gpg: use proxy, if http_proxy is set
parents
1fe8dffa
41440801
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
lxc-download.in
templates/lxc-download.in
+3
-2
No files found.
templates/lxc-download.in
View file @
e613d684
...
...
@@ -60,6 +60,7 @@ if [ -z "${DOWNLOAD_KEYSERVER:-}" ]; then
# Deal with GPG over http proxy
if
[
-n
"
${
http_proxy
:-}
"
]
;
then
DOWNLOAD_KEYSERVER
=
"hkp://p80.pool.sks-keyservers.net:80"
DOWNLOAD_GPG_PROXY
=
"--keyserver-options http-proxy=
\"
${
http_proxy
}
\"
"
fi
fi
...
...
@@ -133,8 +134,8 @@ gpg_setup() {
success
=
for
_
in
$(
seq
3
)
;
do
if
gpg
--keyserver
"
${
DOWNLOAD_KEYSERVER
}
"
\
--recv-keys
"
${
DOWNLOAD_KEYID
}
"
>
/dev/null 2>&1
;
then
if
$(
gpg
--keyserver
"
${
DOWNLOAD_KEYSERVER
}
"
${
DOWNLOAD_GPG_PROXY
:-}
\
--recv-keys
"
${
DOWNLOAD_KEYID
}
"
>
/dev/null 2>&1
)
;
then
success
=
1
break
fi
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment