don't download images to /opt
diff --git a/stack.sh b/stack.sh
index b89a3b1..b47729e 100755
--- a/stack.sh
+++ b/stack.sh
@@ -412,13 +412,13 @@
if [[ "$ENABLED_SERVICES" =~ "g-reg" ]]; then
# Downloads a tty image (ami/aki/ari style), then extracts it. Upon extraction
# we upload to glance with the glance cli tool.
- mkdir -p $DEST/images
- cd $DEST/images
- if [ ! -f $DEST/tty.tgz ]; then
- wget -c http://images.ansolabs.com/tty.tgz -O $DEST/tty.tgz
+ if [ ! -f $FILES/tty.tgz ]; then
+ wget -c http://images.ansolabs.com/tty.tgz -O $FILES/tty.tgz
fi
# extract ami-tty/image, aki-tty/image & ari-tty/image
+ mkdir -p $FILES/images
+ cd $FILES/images
tar -zxf $DEST/tty.tgz
# add images to glance