File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -103,8 +103,7 @@ if [[ $EUID -eq 0 ]]; then
103103
104104 # since this script runs as a normal user, we need to give that user
105105 # ability to run sudo
106- apt_get update
107- apt_get install sudo
106+ dpkg -l sudo || apt_get update && apt_get install sudo
108107
109108 if ! getent passwd stack > /dev/null; then
110109 echo " Creating a user called stack"
Original file line number Diff line number Diff line change @@ -171,13 +171,14 @@ EOF
171171cat > $vm_dir /uec/user-data<< EOF
172172#!/bin/bash
173173apt-get update
174- apt-get install git -y
174+ apt-get install git sudo -y
175175git clone https://github.com/cloudbuilders/devstack.git
176176cd devstack
177177git remote set-url origin ` cd $TOP_DIR ; git remote show origin | grep Fetch | awk ' {print $3}' `
178178git fetch
179179git checkout ` git rev-parse HEAD`
180180cat > localrc <<LOCAL_EOF
181+ ROOTSLEEP=0
181182` cat $TOP_DIR /localrc`
182183LOCAL_EOF
183184./stack.sh
You can’t perform that action at this time.
0 commit comments