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

This commit is contained in:
Anthony Young 2011-11-03 13:47:15 -07:00
parent a81bbbda93
commit 23324e94e2

View File

@ -114,6 +114,7 @@ trap cleanup SIGHUP SIGINT SIGTERM
# Get the UEC image
UEC_NAME=$DIST_NAME-server-cloudimg-amd64
if [ ! -e $CACHEDIR/$UEC_NAME-disk1.img ]; then
mkdir -p $CACHEDIR
(cd $CACHEDIR && wget -N http://uec-images.ubuntu.com/$DIST_NAME/current/$UEC_NAME-disk1.img)
fi