diff --git a/build_lxc.sh b/build_lxc.sh index 6efefec..fea0e74 100755 --- a/build_lxc.sh +++ b/build_lxc.sh @@ -51,7 +51,7 @@ fi # Warm the base image on first install CACHEDIR=/var/cache/lxc/natty/rootfs-amd64 -if [ -d $CACHEDIR ]; then +if [ ! -d $CACHEDIR ]; then # trigger the initial debootstrap lxc-create -n $CONTAINER -t natty -f $LXC_CONF chroot $CACHEDIR apt-get update