Skip to content

Instantly share code, notes, and snippets.

@larowlan
Created May 27, 2014 21:57
Show Gist options
  • Save larowlan/a17355b0640e7952a4b3 to your computer and use it in GitHub Desktop.
Save larowlan/a17355b0640e7952a4b3 to your computer and use it in GitHub Desktop.
d8aroo
# Remove existing database
drush6 sql-drop -y;
# Remove existing install
sudo rm -rf sites/default;
# Restore the sites/default/default.settings.php file
sudo git checkout -- sites/default;
# Temporarily make the sites/default writable by anyone
sudo chmod -R 777 sites/default;
# Ensure the owner is the current user, not root user
sudo chown -R `whoami` sites/default;
# Now that we own it and can write, change the permissions back to how drupal expects them
sudo git checkout -- sites/default;
# But still ensure that we own the folder
sudo chown -R `whoami` sites/default;
# Uncomment this to stop here so you can install the UI
#exit;
# If you run this command with an argument, it will be the name of the DB
if [ $1 ] ; then
echo 'did not install'
else
drush6 si --db-url=mysql://d8:d8@d8.dev/d8 -y --account-pass=power
drush6 en simpletest -y
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment