| ... | ... |
@@ -77,7 +77,7 @@ if [ "$COPYENV" = "1" ]; then |
| 77 | 77 |
cp -pr ~/.bashrc $ROOTFS/opt/.bashrc |
| 78 | 78 |
fi |
| 79 | 79 |
|
| 80 |
-# give stack ownership over /opt so it may do the work needed |
|
| 80 |
+# Give stack ownership over /opt so it may do the work needed |
|
| 81 | 81 |
chroot $ROOTFS chown -R stack /opt |
| 82 | 82 |
|
| 83 | 83 |
# Configure instance network |
| ... | ... |
@@ -26,6 +26,13 @@ set -o xtrace |
| 26 | 26 |
DIR=`pwd` |
| 27 | 27 |
DEST=/opt |
| 28 | 28 |
|
| 29 |
+# Provide option to move aside any old code |
|
| 30 |
+if [ "$CLEAN" = "1"]; then |
|
| 31 |
+ TMPDIR=/tmp/stackbak_`date +%s` |
|
| 32 |
+ mkdir $TMPDIR |
|
| 33 |
+ mv $DEST/* $TMPDIR |
|
| 34 |
+fi |
|
| 35 |
+ |
|
| 29 | 36 |
# Set the destination directories for openstack projects |
| 30 | 37 |
NOVA_DIR=$DEST/nova |
| 31 | 38 |
DASH_DIR=$DEST/dash |
| ... | ... |
@@ -249,7 +256,6 @@ rm -f $GLANCE_DIR/glance.sqlite |
| 249 | 249 |
|
| 250 | 250 |
# nova api crashes if we start it with a regular screen command, |
| 251 | 251 |
# so send the start command by forcing text into the window. |
| 252 |
-ENABLED_SERVICES=g-api,g-reg,key,n-api,n-cpu,n-net,n-sch,n-vnc,dash |
|
| 253 | 252 |
function screen_it {
|
| 254 | 253 |
screen -S nova -X screen -t $1 |
| 255 | 254 |
# only run the services specified in $ENABLED_SERVICES |