From 23324e94e2f44eb685f7c3decf7ab75d3ed4c60c Mon Sep 17 00:00:00 2001 From: Anthony Young Date: Thu, 3 Nov 2011 13:47:15 -0700 Subject: [PATCH] create the uec cachedir if it doesn't exist. Otherwise build_libvirt fails on clean installs --- tools/get_uec_image.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/get_uec_image.sh b/tools/get_uec_image.sh index 3d62bba..cb59b9a 100755 --- a/tools/get_uec_image.sh +++ b/tools/get_uec_image.sh @@ -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