Commit c4e06c20 authored by Markus Frosch's avatar Markus Frosch

deb: Support ICINGA_BUILD_APTCACHER

parent 4cf09879
Pipeline #3147 passed with stage
in 14 seconds
......@@ -25,6 +25,12 @@ if command -v eatmydata >/dev/null; then
eatmydata=eatmydata
fi
if [ -n "$ICINGA_BUILD_APTCACHER" ]; then
echo "[ enable apt-cacher ]"
echo "Acquire::http::Proxy \"${ICINGA_BUILD_APTCACHER}\";" | sudo tee /etc/apt/apt.conf.d/999cache
echo
fi
echo "[ apt-get update ]"
sudo $eatmydata apt-get update
......
......@@ -4,6 +4,12 @@ set -e
# shellcheck source=functions-debian.sh
. "$(dirname "$(readlink -f "$0")")"/functions-debian.sh
if [ -n "$ICINGA_BUILD_APTCACHER" ]; then
echo "[ enable apt-cacher ]"
echo "Acquire::http::Proxy \"${ICINGA_BUILD_APTCACHER}\";" | sudo tee /etc/apt/apt.conf.d/999cache
echo
fi
(
set -ex
cd "${WORKDIR}/${BUILDDIR}"
......
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