From 6cd9c7ed9833f1dde867a28cb2bf9d10ff1de462 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Goran=20Meki=C4=87?= Date: Fri, 7 Apr 2023 12:05:07 +0200 Subject: [PATCH] Check if proxy should be set --- scripts/update-base.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/update-base.sh b/scripts/update-base.sh index 2fec8e7..9c14998 100755 --- a/scripts/update-base.sh +++ b/scripts/update-base.sh @@ -15,7 +15,9 @@ if [ "${BACKEND}" = "cbsd" ]; then elif [ "${BACKEND}" = "base" ]; then JAIL="${1}" export PAGER=cat - export HTTP_PROXY="${PKG_PROXY}" + if [ "${PKG_PROXY}" != "no" ]; then + export HTTP_PROXY="${PKG_PROXY}" + fi if [ -z "${JAIL}" ]; then cd "${BASE_WORKDIR}" jls -N | egrep -v ' *JID' | awk '{print $1}' | while read jail_name; do