echo"Capturing output to install-$(date +%Y%m%d-%H%M%S).log."
echo"Logging enabled."
else
echo"Logging disabled."
fi
ERROR='\033[0;31m'# Red
WARN='\033[1;33m'# Yellow
SUCCESS='\033[0;32m'# Green
NC='\033[0m'# No Color
export OPENEDX_RELEASE=$release
export OPENEDX_RELEASE=$release
# Check if mount location was changed
# Check if mount location was changed
if[[$vagrant_mount_location!=""]];then
if[[$vagrant_mount_location!=""]];then
echo"Changing Vagrant provision location to "$vagrant_mount_location"..."
echo"Changing Vagrant provision location to $vagrant_mount_location..."
export VAGRANT_MOUNT_BASE=vagrant_mount_location
export VAGRANT_MOUNT_BASE=vagrant_mount_location
fi
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
if[[$stack=="devstack"]];then# Install devstack
# Warn if release chosen is not master or named-releaser
# Warn if release chosen is not master or open-release (Eucalyptus and up)
echo-e"${WARN}The release you entered is not 'master' or a named-release. Please be aware that a branch other than master or a release other than the latest named-release could cause errors when installing devstack.${NC}"
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!=*"named-release"*]];then
if[[$release!=*"open-release"*]];then
echo-e"${WARN}The release you entered is not a named-release. Please be aware that a branch other than the latest named-release could cause errors when installing fullstack.${NC}"
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}"