Skip to content

Instantly share code, notes, and snippets.

@pcambra
Last active August 29, 2015 13:56
Show Gist options
  • Save pcambra/9229562 to your computer and use it in GitHub Desktop.
Save pcambra/9229562 to your computer and use it in GitHub Desktop.
#!/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
#drushm si --account-name=admin --account-pass=admin --db-url=mysql://root@localhost/$1 -yv
else
drushm si --account-name=admin --account-pass=admin --db-url=mysql://root@localhost/d8 -yv
fi
#drushm en devel simpletest -y
}
drupal-install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment