Created
December 7, 2013 14:57
-
-
Save cam8001/7843581 to your computer and use it in GitHub Desktop.
Drupal 8 install script.
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 | |
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