Browse code

some fixes for lxc

Anthony Young authored on 2011/11/16 08:29:37
Showing 1 changed files
... ...
@@ -1,5 +1,9 @@
1 1
 #!/usr/bin/env bash
2 2
 
3
+# Debug stuff
4
+set -o errexit
5
+set -o xtrace
6
+
3 7
 # Sanity check
4 8
 if [ "$EUID" -ne "0" ]; then
5 9
   echo "This script must be run with root privileges."
... ...
@@ -126,7 +130,7 @@ fi
126 126
 # Make sure that base requirements are installed
127 127
 chroot $CACHEDIR apt-get update
128 128
 chroot $CACHEDIR apt-get install -y --download-only `cat files/apts/* | grep NOPRIME | cut -d\# -f1`
129
-chroot $CACHEDIR apt-get install -y --force-yes `cat files/apts/* | grep -v NOPRIME | cut -d\# -f1`
129
+chroot $CACHEDIR apt-get install -y --force-yes `cat files/apts/* | grep -v NOPRIME | cut -d\# -f1` || true
130 130
 chroot $CACHEDIR pip install `cat files/pips/*`
131 131
 
132 132
 # Clean out code repos if directed to do so