echo"Capturing output to install-$(date +%Y%m%d-%H%M%S).log."
export OPENEDX_RELEASE=$release
# Check if mount location was changed
if[[$vagrant_mount_location!=""]];then
echo"Changing Vagrant provision location to $vagrant_mount_location..."
export VAGRANT_MOUNT_BASE=vagrant_mount_location
fi
if[[-d"$stack"]];then
echo-e"${ERROR}A $stack directory already exists here. If you already tried installing $stack, make sure to vagrant destroy the $stack machine and rm -rf the $stack directory before trying to reinstall. If you would like to install a separate $stack, change to a different directory and try running the script again.${NC}"
exit 1
fi
if[[$stack=="devstack"]];then# Install devstack
# Warn if release chosen is not master or open-release (Eucalyptus and up)
echo-e"${WARN}The release you entered is not 'master' or an open-release. Please be aware that a branch other than master or a release other than the latest open-release could cause errors when installing $stack.${NC}"
# Warn if release chosen is not open-release (Eucalyptus and up)
if[[$release!=*"open-release"*]];then
echo-e"${WARN}The release you entered is not an open-release. Please be aware that a branch other than the latest open-release could cause errors when installing $stack.${NC}"