Move DEST ahead of stack account creation

Change-Id: I25892e8a9249d3d421062d910d53b8de8134ef80
This commit is contained in:
Dean Troyer 2012-06-27 17:55:15 -05:00
parent c4cd4140d3
commit e26232bc92

@ -219,6 +219,12 @@ else
sudo rm -f /etc/sudoers.d/stack_sh_nova
fi
# Create the destination directory and ensure it is writable by the user
sudo mkdir -p $DEST
if [ ! -w $DEST ]; then
sudo chown `whoami` $DEST
fi
# Set True to configure ``stack.sh`` to run cleanly without Internet access.
# ``stack.sh`` must have been previously run with Internet access to install
# prerequisites and initialize ``$DEST``.
@ -602,12 +608,6 @@ failed() {
# an error. It is also useful for following along as the install occurs.
set -o xtrace
# create the destination directory and ensure it is writable by the user
sudo mkdir -p $DEST
if [ ! -w $DEST ]; then
sudo chown `whoami` $DEST
fi
# Install Packages
# ================