Skip to content
Snippets Groups Projects
Commit 010cc3f0 authored by Eric Bremner's avatar Eric Bremner
Browse files

ISTWCMS-5509: adding initial build ohana script

parent bfdbeb35
No related branches found
No related tags found
No related merge requests found
env_option=${1:-1}
build_option=${2:-1}
os_option=${3:"mac"}
HTML_PATH=${4:-"/var/www/html"}
DRUPAL_PATH=${5:-/var/www/drupal8}
if [[ -L "$HTML_PATH/uw_wcms_gesso" ]]; then
echo ""
echo "*************************************************************************"
echo "Removing old ohana symlink ..."
rm -rf "$HTML_PATH/uw_wcms_ohana"
echo "Done removing old ohana symlink."
echo "**************************************************************************"
echo ""
fi
cd "$DRUPAL_PATH/web/profiles/uw_base_profile/modules/custom/uw_wcms_ohana"
if [[ -d ohana ]]; then
echo "**************************************************************************************"
echo "Removing old ohana ..."
rm -rf ohana
echo "Done removing old ohana."
echo "**************************************************************************************"
echo ""
fi
git clone https://github.com/chazchumley/ohana.git
if [ "$?" != 0 ]; then
echo "Error: git clone failed"
exit 2;
fi
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