From c7f7977622e6dba5f3e68e073d310b0690b5153b Mon Sep 17 00:00:00 2001 From: "Andreas B. Mundt" Date: Sun, 26 Jun 2022 12:44:07 +0200 Subject: [PATCH] Bail out if apt-proxy fails. --- roles/edulive/templates/livebuilder.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/roles/edulive/templates/livebuilder.sh b/roles/edulive/templates/livebuilder.sh index d8ef679..92f7aab 100644 --- a/roles/edulive/templates/livebuilder.sh +++ b/roles/edulive/templates/livebuilder.sh @@ -21,6 +21,11 @@ run_build(){ ## main: +if ! auto-apt-proxy | grep -q 'http://127.0.0.1:3142' ; then + echo "Cannot find the local apt proxy needed to build live images." + exit 1 +fi + for IMG in {{ build_images|join(' ') }} ; do echo "=========== Building image $IMG ===========" run_build $IMG