Skip to content
Snippets Groups Projects
Commit 61ee2df2 authored by Igor Biki's avatar Igor Biki
Browse files

ISTWCMS-4861 Adding environment option to build_gesso script.

parent e458fd65
No related branches found
No related tags found
2 merge requests!63Tag 3.0.1,!60ISTWCMS-4861: fixing symlink for d4d
build_option=${1:-1} env_option=${1:-1}
HTML_PATH=${2:-"/var/www/html"} build_option=${2:-1}
DRUPAL_PATH=${3:-/var/www/drupal8} HTML_PATH=${3:-"/var/www/html"}
DRUPAL_PATH=${4:-/var/www/drupal8}
gesso_version="8.x-3.2-uw_wcms1" gesso_version="8.x-3.2-uw_wcms1"
if [[ -L "$HTML_PATH/uw_wcms_gesso" ]]; then if [[ -L "$HTML_PATH/uw_wcms_gesso" ]]; then
...@@ -92,9 +93,9 @@ if [[ $build_option == 1 || $build_option == 3 ]]; then ...@@ -92,9 +93,9 @@ if [[ $build_option == 1 || $build_option == 3 ]]; then
echo "**************************************************************************************" echo "**************************************************************************************"
echo "Creating symlink for gesso ..." echo "Creating symlink for gesso ..."
cd $HTML_PATH cd $HTML_PATH
if [[ $build_option == 1 ]]; then if [[ $env_option == 1 ]]; then
ln -s "$DRUPAL_PATH"/web/profiles/uw_base_profile/modules/custom/uw_wcms_gesso uw_wcms_gesso ln -s "$DRUPAL_PATH"/web/profiles/uw_base_profile/modules/custom/uw_wcms_gesso uw_wcms_gesso
elif [[ $build_option == 2 ]]; then elif [[ $env_option == 2 ]]; then
cd /var/www/html/web cd /var/www/html/web
ln -s ./profiles/uw_base_profile/modules/custom/uw_wcms_gesso uw_wcms_gesso ln -s ./profiles/uw_base_profile/modules/custom/uw_wcms_gesso uw_wcms_gesso
cd - cd -
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment