Last active
January 5, 2016 21:21
-
-
Save kyleskrinak/7500f5b20f9bea77a602 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
echo "what is your root domain name, something like 'colab-sbx-110.oit.unicorn.edu'" | |
read rootdomain | |
echo "update apt-get" | |
sudo apt-get update | |
echo "install git" | |
sudo apt-get -y install git | |
echo "install vim" | |
sudo apt-get -y install vim | |
echo "remove the /drupal prefix" | |
sudo /opt/bitnami/apps/drupal/bnconfig --appurl / | |
cd /opt/bitnami/apps/drupal/htdocs/sites | |
echo "We're now in: " $(pwd) | |
echo "make the local site directory, give it group write perms" | |
git clone git@gitlab.oit.duke.edu:tts-drupal-sites/reference-dev_trinity_duke_edu.git $rootdomain | |
mkdir -v /opt/bitnami/apps/drupal/htdocs/sites/$rootdomain/files | |
chmod g+w /opt/bitnami/apps/drupal/htdocs/sites/$rootdomain/files | |
chmod g-w /opt/bitnami/apps/drupal/htdocs/sites/$rootdomain | |
echo "Copy default/settings.php into new directory" | |
cp default/settings.php $rootdomain | |
echo "Remove original settings.php file" | |
rm -vf default/settings.php | |
echo "fix permissions" | |
sudo chown -R bitnami:daemon /opt/bitnami/apps/drupal/htdocs/sites/$rootdomain | |
cd /opt/bitnami/apps/drupal/htdocs/sites | |
rm -rf /opt/bitnami/apps/drupal/htdocs/sites/all | |
git clone -b staging git@gitlab.oit.duke.edu:tts-drupal-sites/tts_sites_all.git all | |
git clone -b staging git@gitlab.oit.duke.edu:tts-drupal-themes/tts-base-responsive.git all/themes/tts | |
echo "fix permissions, one more time" | |
sudo chown -R bitnami:daemon /opt/bitnami/apps/drupal/htdocs/sites/$rootdomain | |
drush status | |
sudo chown -Rv bitnami:daemon /home/bitnami/.drush | |
echo "enable standard modules" | |
cd /opt/bitnami/apps/drupal/htdocs/sites/$rootdomain | |
# drush dis toolbar overlay --y | |
# drush en admin_menu admin_menu_toolbar module_filter ctools page_manager context context_layouts context_ui calendar date date_api date_popup date_repeat date_repeat_field date_views ds_extras ds_format ds_ui features feeds feeds_ui feeds_tamper feeds_tamper_ui feeds_xpathparser email field_slideshow link flexslider flexslider_fields flexslider_views image_resize_filter pathologic masonry masonry_views file_entity media media_internet media_vimeo media_youtube block_class job_scheduler libraries menu_block pathauto quicktabs quicktabs_tabstyles strongarm token panels_mini panels sharethis ckeditor jquery_update views views_slideshow views_slideshow_cycle views_ui --y | |
drush -v cron | |
drush -v cc all | |
echo "set -o vi" >> /home/bitnami/.bashrc | |
echo "alias site=\"cd /opt/bitnami/apps/drupal/htdocs/sites\"" >> /home/bitnami/.bashrc | |
source ~/.bashrc | |
echo "all done" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment