Browse code

create the uec cachedir if it doesn't exist. Otherwise build_libvirt fails on clean installs

Anthony Young authored on 2011/11/04 05:47:15
Showing 1 changed files
... ...
@@ -114,6 +114,7 @@ trap cleanup SIGHUP SIGINT SIGTERM
114 114
 # Get the UEC image
115 115
 UEC_NAME=$DIST_NAME-server-cloudimg-amd64
116 116
 if [ ! -e $CACHEDIR/$UEC_NAME-disk1.img ]; then
117
+    mkdir -p $CACHEDIR
117 118
     (cd $CACHEDIR && wget -N http://uec-images.ubuntu.com/$DIST_NAME/current/$UEC_NAME-disk1.img)
118 119
 fi
119 120