should speed up by 20 seconds - sudo and no sleep

This commit is contained in:
Jesse Andrews 2011-11-06 08:00:28 -08:00
parent 00d6bc6529
commit c7f72ad890
2 changed files with 3 additions and 3 deletions

View file

@ -103,8 +103,7 @@ if [[ $EUID -eq 0 ]]; then
# since this script runs as a normal user, we need to give that user
# ability to run sudo
apt_get update
apt_get install sudo
dpkg -l sudo || apt_get update && apt_get install sudo
if ! getent passwd stack >/dev/null; then
echo "Creating a user called stack"

View file

@ -171,13 +171,14 @@ EOF
cat > $vm_dir/uec/user-data<<EOF
#!/bin/bash
apt-get update
apt-get install git -y
apt-get install git sudo -y
git clone https://github.com/cloudbuilders/devstack.git
cd devstack
git remote set-url origin `cd $TOP_DIR; git remote show origin | grep Fetch | awk '{print $3}'`
git fetch
git checkout `git rev-parse HEAD`
cat > localrc <<LOCAL_EOF
ROOTSLEEP=0
`cat $TOP_DIR/localrc`
LOCAL_EOF
./stack.sh