Skip to content

Instantly share code, notes, and snippets.

View cosmicdreams's full-sized avatar

Chris Weber cosmicdreams

View GitHub Profile
@cosmicdreams
cosmicdreams / setupd8
Last active August 29, 2015 14:14 — forked from timplunkett/setupd8
#!/bin/bash
# Drop the existing database, if any.
drush sql-drop -y;
# Remove the files from a previous install.
sudo rm -rf sites/default;
# Restore the directories and files that are included by Drupal.
sudo git checkout -- sites/default;
# Fix permissions and ownership problems caused by sudo.