comment tweaks, provide CLEAN option to stack.sh
diff --git a/build_lxc.sh b/build_lxc.sh
index d3dd7ad..5e07b1a 100755
--- a/build_lxc.sh
+++ b/build_lxc.sh
@@ -77,7 +77,7 @@
cp -pr ~/.bashrc $ROOTFS/opt/.bashrc
fi
-# give stack ownership over /opt so it may do the work needed
+# Give stack ownership over /opt so it may do the work needed
chroot $ROOTFS chown -R stack /opt
# Configure instance network
diff --git a/stack.sh b/stack.sh
index 21a66ed..0fe84ad 100755
--- a/stack.sh
+++ b/stack.sh
@@ -26,6 +26,13 @@
DIR=`pwd`
DEST=/opt
+# Provide option to move aside any old code
+if [ "$CLEAN" = "1"]; then
+ TMPDIR=/tmp/stackbak_`date +%s`
+ mkdir $TMPDIR
+ mv $DEST/* $TMPDIR
+fi
+
# Set the destination directories for openstack projects
NOVA_DIR=$DEST/nova
DASH_DIR=$DEST/dash
@@ -249,7 +256,6 @@
# nova api crashes if we start it with a regular screen command,
# so send the start command by forcing text into the window.
-ENABLED_SERVICES=g-api,g-reg,key,n-api,n-cpu,n-net,n-sch,n-vnc,dash
function screen_it {
screen -S nova -X screen -t $1
# only run the services specified in $ENABLED_SERVICES