Skip to content

Instantly share code, notes, and snippets.

@chrisjlee
Last active March 17, 2016 16:43
Show Gist options
  • Save chrisjlee/5359653 to your computer and use it in GitHub Desktop.
Save chrisjlee/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.
#/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