fix check for nfs-stack existence

This commit is contained in:
Anthony Young 2011-09-14 01:35:54 -07:00
parent 80638e545f
commit d74d681d3f

View file

@ -123,7 +123,7 @@ sleep 1
# Install and run stack.sh
apt-get update
apt-get -y --force-yes install git-core vim-nox sudo
if [ ! -d "~/nfs-stack" ]; then
if [ ! -d "/opt/nfs-stack" ]; then
su -c "git clone git://github.com/cloudbuilders/nfs-stack.git ~/nfs-stack" stack
fi
nohup su -c "cd ~/nfs-stack && $STACKSH_PARAMS ./stack.sh" stack &> /opt/run.sh.log