summaryrefslogtreecommitdiffstats
path: root/vagrant
diff options
context:
space:
mode:
authorintrigeri <intrigeri@boum.org>2020-01-01 08:28:19 +0000
committerintrigeri <intrigeri@boum.org>2020-01-01 11:58:08 +0000
commit43a511194f5fc2ba24709f37b174b999d367cb07 (patch)
treee19e2bbeca4b30774368915e823fa49e724821d7 /vagrant
parentfc48e119a174ff0abcaad3ec238b7a1354d82c14 (diff)
Build system: make the code less order-dependent
Diffstat (limited to 'vagrant')
-rwxr-xr-xvagrant/provision/setup-tails-builder3
1 files changed, 1 insertions, 2 deletions
diff --git a/vagrant/provision/setup-tails-builder b/vagrant/provision/setup-tails-builder
index d600d8b..86c3649 100755
--- a/vagrant/provision/setup-tails-builder
+++ b/vagrant/provision/setup-tails-builder
@@ -45,8 +45,7 @@ if [ "${TAILS_PROXY_TYPE}" = "vmproxy" ]; then
install -o root -g root -m 644 /vagrant/provision/assets/acng.conf \
/etc/apt-cacher-ng/acng.conf
rm -f /etc/apt-cacher-ng/network.conf
- [ "${TAILS_OFFLINE_MODE}" = 1 ] || TAILS_OFFLINE_MODE=0
- echo "Offlinemode: ${TAILS_OFFLINE_MODE}" > /etc/apt-cacher-ng/network.conf
+ echo "Offlinemode: ${TAILS_OFFLINE_MODE:-0}" >> /etc/apt-cacher-ng/network.conf
if [ -n "${TAILS_ACNG_PROXY:-}" ]; then
echo "Proxy: ${TAILS_ACNG_PROXY}" >> /etc/apt-cacher-ng/network.conf
fi