Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
WCMS
uw_base_profile
Commits
6895a5ef
Commit
6895a5ef
authored
Dec 23, 2020
by
Eric Bremner
Committed by
Eric Bremner
Jan 07, 2021
Browse files
ISTWCMS-4487: updating rebuild script to not ask for gesso branch when building for non-development
parent
350888c0
Changes
1
Hide whitespace changes
Inline
Side-by-side
rebuild.sh
View file @
6895a5ef
...
...
@@ -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
"
\n
Drupal root directory: [
$drupal_root_default
]: "
read
-r
drupal_root_dir
printf
"
\n
Gesso branch/tag: [8.x-3.x]: "
read
-r
gesso_branch_tag
if
[
${
build_option
}
==
"2"
]
||
[
${
build_option
}
==
"3"
]
;
then
printf
"
\n
Gesso branch/tag: [8.x-3.x]: "
read
-r
gesso_branch_tag
fi
if
[
${
build_option
}
==
"2"
]
||
[
${
build_option
}
==
"3"
]
;
then
printf
"
\n
Gesso root directory: [
$gesso_root_default
]: "
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment