Browse code

merge trunk, and also make sure localrc exists before running build_lxc.sh

Anthony Young authored on 2011/10/14 07:07:36
Showing 2 changed files
... ...
@@ -11,6 +11,13 @@ if ! grep -q natty /etc/lsb-release; then
11 11
     echo "WARNING: this script has only been tested on natty"
12 12
 fi
13 13
 
14
+# Abort if localrc is not set
15
+if [ ! -e ./localrc ]; then
16
+    echo "You must have a localrc with ALL necessary passwords defined before proceeding."
17
+    echo "See stack.sh for required passwords."
18
+    exit 1
19
+fi
20
+
14 21
 # Source params
15 22
 source ./stackrc
16 23
 
... ...
@@ -248,4 +255,4 @@ while [ ! -e "$ROOTFS/$DEST/run.sh.log" ]; do
248 248
   sleep 1
249 249
 done
250 250
 
251
-tail -F $ROOTFS/$DEST/run.sh.log
251
+tail -F $ROOTFS/$DEST/devstack/stack.sh.*.log
... ...
@@ -366,7 +366,7 @@ MYSQL_PRESEED
366 366
         cat <<EOF >$HOME/.my.cnf
367 367
 [client]
368 368
 user=$MYSQL_USER
369
-password=$MYSQL_PASS    
369
+password=$MYSQL_PASSWORD
370 370
 host=$MYSQL_HOST
371 371
 EOF
372 372
         chmod 0600 $HOME/.my.cnf