Commit 6895a5ef authored by Eric Bremner's avatar Eric Bremner Committed by Eric Bremner
Browse files

ISTWCMS-4487: updating rebuild script to not ask for gesso branch when building for non-development

parent 350888c0
......@@ -82,19 +82,18 @@ else
interactivity=0
fi
# Set up defaults.
script_path=`pwd`
gesso_root_default='/var/www/html'
if [[ "$script_path" == *"app"* ]]; then
drupal_root_default='/app'
gesso_root_default='/app'
elif [[ "$script_path" == *"alt"* ]]; then
drupal_root_default='/var/www/drupal8alt'
else
drupal_root_default='/var/www/drupal8'
fi
if [ ${interactivity} == 1 ]; then
# Set up defaults.
script_path=`pwd`
gesso_root_default='/var/www/html'
if [[ "$script_path" == *"app"* ]]; then
drupal_root_default='/app'
gesso_root_default='/app'
elif [[ "$script_path" == *"alt"* ]]; then
drupal_root_default='/var/www/drupal8alt'
else
drupal_root_default='/var/www/drupal8'
fi
# Ask install questions.
echo "What would you like to do?"
echo "1 = Rebuild profile (non-development)."
......@@ -124,8 +123,10 @@ if [ ${interactivity} == 1 ]; then
printf "\nDrupal root directory: [$drupal_root_default]: "
read -r drupal_root_dir
printf "\nGesso branch/tag: [8.x-3.x]: "
read -r gesso_branch_tag
if [ ${build_option} == "2" ] || [ ${build_option} == "3" ]; then
printf "\nGesso branch/tag: [8.x-3.x]: "
read -r gesso_branch_tag
fi
if [ ${build_option} == "2" ] || [ ${build_option} == "3" ]; then
printf "\nGesso root directory: [$gesso_root_default]: "
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment