Commit a6a7c7d1 by Tai Kedzierski

lxc-download.in / allow setting keyserver from env

Checks if DOWNLOAD_KEYSERVER has already been set in the environment before setting a value Signed-off-by: 's avatarTai Kedzierski <dch.tai@gmail.com>
parent b49bb7dc
...@@ -34,7 +34,6 @@ DOWNLOAD_FLUSH_CACHE="false" ...@@ -34,7 +34,6 @@ DOWNLOAD_FLUSH_CACHE="false"
DOWNLOAD_FORCE_CACHE="false" DOWNLOAD_FORCE_CACHE="false"
DOWNLOAD_INTERACTIVE="false" DOWNLOAD_INTERACTIVE="false"
DOWNLOAD_KEYID="0xE7FB0CAEC8173D669066514CBAEFF88C22F6E216" DOWNLOAD_KEYID="0xE7FB0CAEC8173D669066514CBAEFF88C22F6E216"
DOWNLOAD_KEYSERVER="hkp://pool.sks-keyservers.net"
DOWNLOAD_LIST_IMAGES="false" DOWNLOAD_LIST_IMAGES="false"
DOWNLOAD_MODE="system" DOWNLOAD_MODE="system"
DOWNLOAD_READY_GPG="false" DOWNLOAD_READY_GPG="false"
...@@ -54,9 +53,13 @@ LXC_NAME= ...@@ -54,9 +53,13 @@ LXC_NAME=
LXC_PATH= LXC_PATH=
LXC_ROOTFS= LXC_ROOTFS=
# Deal with GPG over http proxy if [ -z "${DOWNLOAD_KEYSERVER+x}" ]; then
if [ -n "${http_proxy:-}" ]; then DOWNLOAD_KEYSERVER="hkp://pool.sks-keyservers.net"
DOWNLOAD_KEYSERVER="hkp://p80.pool.sks-keyservers.net:80"
# Deal with GPG over http proxy
if [ -n "${http_proxy:-}" ]; then
DOWNLOAD_KEYSERVER="hkp://p80.pool.sks-keyservers.net:80"
fi
fi fi
# Make sure the usual locations are in PATH # Make sure the usual locations are in PATH
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment