Last active
March 17, 2016 16:43
-
-
Save chrisl8888/5359653 to your computer and use it in GitHub Desktop.
Drupal 8 Reinstall Script. Every time i perform a pull to drupal 8 you have to reinstall drupal. apparently. Well this script gets me at least half the way. Place this in the root of the drupal 8 install.
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 | |
if [ $# -eq 0 ] ; then | |
echo 'Please provide a site install to work with.' | |
exit 0 | |
fi | |
git co 8.x | |
git pull origin 8.x | |
mysql -uroot -e 'drop database d8; create database d8'; | |
sudo rm -rfv sites/default/files/php | |
sudo rm -rfv sites/default/files/simpletest | |
sudo rm sites/default/settings.php | |
cp sites/default/default.settings.php sites/default/settings.php | |
/opt/google/chrome/chrome 'http://d8/core/install.php?langcode=en&profile=standard' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment