Skip to content

Commit e26232b

Browse files
author
Dean Troyer
committed
Move DEST ahead of stack account creation
Change-Id: I25892e8a9249d3d421062d910d53b8de8134ef80
1 parent c4cd414 commit e26232b

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

stack.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,12 @@ else
219219
sudo rm -f /etc/sudoers.d/stack_sh_nova
220220
fi
221221

222+
# Create the destination directory and ensure it is writable by the user
223+
sudo mkdir -p $DEST
224+
if [ ! -w $DEST ]; then
225+
sudo chown `whoami` $DEST
226+
fi
227+
222228
# Set True to configure ``stack.sh`` to run cleanly without Internet access.
223229
# ``stack.sh`` must have been previously run with Internet access to install
224230
# prerequisites and initialize ``$DEST``.
@@ -602,12 +608,6 @@ failed() {
602608
# an error. It is also useful for following along as the install occurs.
603609
set -o xtrace
604610

605-
# create the destination directory and ensure it is writable by the user
606-
sudo mkdir -p $DEST
607-
if [ ! -w $DEST ]; then
608-
sudo chown `whoami` $DEST
609-
fi
610-
611611

612612
# Install Packages
613613
# ================

0 commit comments

Comments
 (0)