Skip to content

Instantly share code, notes, and snippets.

@tarnus
Created April 23, 2013 17:35
Show Gist options
  • Save tarnus/5445693 to your computer and use it in GitHub Desktop.
Save tarnus/5445693 to your computer and use it in GitHub Desktop.
drupal automation install
#!/bin/bash
cd base_install
cp local.make.example ../drush.make
cp drupal-org.make ../
cd ..
drush make drush.make
cd sites/default
cp default.settings.php settings.php
chmod 777 settings.php
mkdir files
chmod 777 files
cd ../..
cp -rp base_install profiles/
read -e -p "Enter Site Name: " -i "Your Site Name Here" site_name
read -e -p "Enter Site Email: " -i "" site_email
read -e -p "Enter Site Admin User: " -i "" site_admin
read -e -p "Enter Site Admin Password: " -i "" site_passwd
read -e -p "Enter Database Server: " -i "localhost" db_server
read -e -p "Enter Database Name: " -i "" db_name
read -e -p "Enter Database User Name: " -i "" db_user
read -e -p "Enter Database User Passwd: " -i "" db_passwd
drush site-install base_install --site-name="$site_name" --site-mail=#site_email --account-name=$site_admin --account-pass=$site_passwd --db-url=mysql://$db_user:$db_passwd@$db_server/$db_name
cp -rp base_install/modules/custom sites/all/modules
cp -rp base_install/modules/custom/ckeditor.config.js sites/all/modules/contrib/ckeditor/
drush en rt_base_install
drush fr rt_base_install
drush cc all
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment