summaryrefslogtreecommitdiffstats
path: root/vagrant/provision/setup-tails-builder
diff options
context:
space:
mode:
Diffstat (limited to 'vagrant/provision/setup-tails-builder')
-rwxr-xr-xvagrant/provision/setup-tails-builder13
1 files changed, 1 insertions, 12 deletions
diff --git a/vagrant/provision/setup-tails-builder b/vagrant/provision/setup-tails-builder
index ae233f4..d329174 100755
--- a/vagrant/provision/setup-tails-builder
+++ b/vagrant/provision/setup-tails-builder
@@ -55,19 +55,8 @@ if [ ! -b /dev/vdb1 ]; then
mkfs.ext4 /dev/vdb1
fi
-if [ -d /var/cache/apt-cacher-ng/ ]; then
- if ! mountpoint -q /var/cache/apt-cacher-ng; then
- echo "A previous installation has been detected, migrating APT data."
- mount /dev/vdb1 /mnt
- rsync -a /var/cache/apt-cacher-ng/ /mnt/
- rm -rf /var/cache/apt-cacher-ng/*
- umount /mnt/
- echo "Migration done. You may want to recreate your vagrant box to save disk space."
- fi
-
-else
+[ -d /var/cache/apt-cacher-ng/ ] || \
adduser --quiet --system --group --home /var/cache/apt-cacher-ng apt-cacher-ng
-fi
if ! mountpoint -q /var/cache/apt-cacher-ng; then
mount /dev/vdb1 /var/cache/apt-cacher-ng