Merge pull request #160 from cloudbuilders/mk_cachedir
create the uec cachedir if it doesn't exist.
This commit is contained in:
commit
cc197481ad
1 changed files with 1 additions and 0 deletions
|
@ -114,6 +114,7 @@ trap cleanup SIGHUP SIGINT SIGTERM
|
||||||
# Get the UEC image
|
# Get the UEC image
|
||||||
UEC_NAME=$DIST_NAME-server-cloudimg-amd64
|
UEC_NAME=$DIST_NAME-server-cloudimg-amd64
|
||||||
if [ ! -e $CACHEDIR/$UEC_NAME-disk1.img ]; then
|
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)
|
(cd $CACHEDIR && wget -N http://uec-images.ubuntu.com/$DIST_NAME/current/$UEC_NAME-disk1.img)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue