Last active
August 29, 2015 13:56
-
-
Save pcambra/9229562 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
#!/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