Skip to content
This repository has been archived by the owner on Jul 7, 2022. It is now read-only.

Commit

Permalink
Merge pull request #86 from ymcatwincities/8.2.x-virtual-y-script
Browse files Browse the repository at this point in the history
Update openyonclickinstall.sh. Add virtual-y
  • Loading branch information
podarok authored Jun 24, 2020
2 parents 90e6bec + 7f970d3 commit 746b0a2
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions scripts/openyonclickinstall.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@
# To get a particular branch:
# curl -Ls http://bit.ly/initopeny | bash -s dev-BRANCH_NAME
# as root user
#
# To get Virtual Y
# curl -Ls https://openy.org/l/virtualy | bash -s virtualy
#

OPENYBETA="8.2.*@beta"
OPENYDEV="dev-8.x-2.x"
Expand All @@ -25,7 +29,7 @@ OPENYVERSION=${OPENYVERSION:-stable}
[ -z "$LC_CTYPE" ] && export LC_TYPE=en_US.UTF-8
[ -z "$LANG" ] && export LANG=en_US.UTF-8

printf "Hello, OpenY evaluator.\n OpenY one click install version 1.5.\n"
printf "Hello, OpenY evaluator.\n OpenY one click install version 1.6.\n"

printf "Installing OpenY into /var/www/html\n"

Expand Down Expand Up @@ -56,7 +60,7 @@ sudo sed -i "s/var\/www/var\/www\/html\/docroot/g" /etc/apache2/sites-enabled/vh

sudo service apache2 restart

drush dl -y drupal-8.7.x --dev --destination=/tmp --default-major=8 --drupal-project-rename=drupal
drush dl -y drupal-8.9.x --dev --destination=/tmp --default-major=8 --drupal-project-rename=drupal

cd /tmp/drupal
drush si -y minimal --db-url=mysql://root:$root_pass@localhost/drupal ; drush sql-drop -y
Expand All @@ -75,6 +79,9 @@ elif [[ "$OPENYVERSION" == "dev" ]]; then
echo "Installing Latest Dev Open Y"
COMPOSER_MEMORY_LIMIT=-1 composer remove ymcatwincities/openy --no-update
COMPOSER_MEMORY_LIMIT=-1 composer require ymcatwincities/openy:${OPENYDEV} --update-with-dependencies
elif [[ "$OPENYVERSION" == "virtualy" ]]; then
echo "Installing Latest Standalone Virtual Y"
COMPOSER_MEMORY_LIMIT=-1 composer require ymcatwincities/openy_gated_content
elif [[ "$OPENYVERSION" == "beta" ]]; then
echo "Installing Latest Beta Open Y"
COMPOSER_MEMORY_LIMIT=-1 composer remove ymcatwincities/openy --no-update
Expand All @@ -94,4 +101,4 @@ sudo chmod -R 777 /var/www/html/docroot/sites/default/files

IP="$(ip addr | grep 'state UP' -A2 | tail -n1 | awk '{print $2}' | cut -f1 -d'/')"

printf "\nOpen http://$IP/core/install.php to proceed with OpenY installation.\n"
printf "\nOpen http://$IP/core/install.php to proceed with Open Y installation.\n"

0 comments on commit 746b0a2

Please sign in to comment.