Skip to content

Instantly share code, notes, and snippets.

@aschiwi
Last active November 7, 2017 17:32
Show Gist options
  • Save aschiwi/5848790 to your computer and use it in GitHub Desktop.
Save aschiwi/5848790 to your computer and use it in GitHub Desktop.
Example install.sh
################################################################################
# Shell and drush commands to set up (or some part of it) the new site.
#
# Go to sites/all/scripts (e.g. cd sites/all/scripts) and type "sh install.sh"
# in your console/shell/Terminal.
#
# The commands are built to run once, e.g. to set some symlinks, but shall be
# designed to not break other commands on the second run.
#
################################################################################
# Change directory to drupal root
cd ../../..
# Build symlinks for local environment.
echo "Create symlinks:"
ln -s .htaccess.local .htaccess
ln -s settings.local.php sites/default/settings.php
# Install Drupal
drush site-install minimal -y
# Check drupal status
drush status
# Create Login
echo "Use the following link to log in"
drush uli
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment