From: Tai Kedzierski Date: Sun, 19 Mar 2017 09:21:29 +0000 (+0000) Subject: lxc-download.in / allow setting keyserver from env X-Git-Tag: lxc-1.0.10~16 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ec7a8f7cde3069d6ccd90ef6be11b36553316fdc;p=thirdparty%2Flxc.git 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: Tai Kedzierski --- diff --git a/templates/lxc-download.in b/templates/lxc-download.in index af51bf3f8..6edb37b24 100644 --- a/templates/lxc-download.in +++ b/templates/lxc-download.in @@ -34,7 +34,6 @@ DOWNLOAD_FLUSH_CACHE="false" DOWNLOAD_FORCE_CACHE="false" DOWNLOAD_INTERACTIVE="false" DOWNLOAD_KEYID="0xE7FB0CAEC8173D669066514CBAEFF88C22F6E216" -DOWNLOAD_KEYSERVER="hkp://pool.sks-keyservers.net" DOWNLOAD_LIST_IMAGES="false" DOWNLOAD_MODE="system" DOWNLOAD_READY_GPG="false" @@ -54,9 +53,13 @@ LXC_NAME= LXC_PATH= LXC_ROOTFS= -# Deal with GPG over http proxy -if [ -n "${http_proxy:-}" ]; then - DOWNLOAD_KEYSERVER="hkp://p80.pool.sks-keyservers.net:80" +if [ -z "${DOWNLOAD_KEYSERVER+x}" ]; then + DOWNLOAD_KEYSERVER="hkp://pool.sks-keyservers.net" + + # Deal with GPG over http proxy + if [ -n "${http_proxy:-}" ]; then + DOWNLOAD_KEYSERVER="hkp://p80.pool.sks-keyservers.net:80" + fi fi # Make sure the usual locations are in PATH