create the uec cachedir if it doesn't exist.
| ... | ... |
@@ -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 |
|