Skip to content

Instantly share code, notes, and snippets.

@jimmyko
Forked from cam8001/drupal_install.sh
Created July 20, 2016 13:21
Show Gist options
  • Save jimmyko/f3ab259bb263b1ee9934fbfc68544c08 to your computer and use it in GitHub Desktop.
Save jimmyko/f3ab259bb263b1ee9934fbfc68544c08 to your computer and use it in GitHub Desktop.
Drupal 8 install script.
#!/bin/bash
function drupal-install() {
sudo rm -rf sites/default;
sudo git checkout -- sites/default;
sudo chmod -R 777 sites/default;
sudo chown -R `whoami` sites/default;
sudo git checkout -- sites/default;
sudo chown -R `whoami` sites/default;
#exit;
if [ $1 ] ; then
drush si --account-name=admin --account-pass=admin --db-url=mysql://root:root@localhost/$1 -yv
else
drush si --account-name=admin --account-pass=admin --db-url=mysql://root:root@localhost/d8 -yv
fi
#drush en devel simpletest -y
drush en simpletest -y
#drush dis overlay -y
}
drupal-install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment