Skip to content

Commit 461bfdc

Browse files
committed
delete instances needs sudo
1 parent e430423 commit 461bfdc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

stack.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ if [[ $EUID -eq 0 ]]; then
5454
# since this script runs as a normal user, we need to give that user
5555
# ability to run sudo
5656
apt-get update
57-
apt-get install -y sudo
57+
apt-get install -qqy sudo
5858

5959
if ! getent passwd | grep -q stack; then
6060
echo "Creating a user called stack"
@@ -224,7 +224,7 @@ ADMIN_PASSWORD=${ADMIN_PASSWORD:-`openssl rand -hex 10`}
224224

225225

226226
# install apt requirements
227-
sudo apt-get install -y -q `cat $FILES/apts/* | cut -d\# -f1 | grep -Ev "mysql-server|rabbitmq-server"`
227+
sudo apt-get install -qqy `cat $FILES/apts/* | cut -d\# -f1 | grep -Ev "mysql-server|rabbitmq-server"`
228228

229229
# install python requirements
230230
sudo PIP_DOWNLOAD_CACHE=/var/cache/pip pip install `cat $FILES/pips/*`
@@ -435,7 +435,7 @@ if [[ "$ENABLED_SERVICES" =~ "n-cpu" ]]; then
435435
fi
436436

437437
# Clean out the instances directory.
438-
rm -rf $NOVA_DIR/instances/*
438+
sudo rm -rf $NOVA_DIR/instances/*
439439
fi
440440

441441
if [[ "$ENABLED_SERVICES" =~ "n-net" ]]; then

0 commit comments

Comments
 (0)