Bash alias to prepare a cloned Drupal 7 site


Prepare a cloned Drupal 7 site that doesn't include the files directory or settings.php file by creating settings.php, files directories, and setting permissions.

Get raw version
  1. # add settings.php, file directories, set permissions, and return to site root
  2. alias prepare-d7-site="cd sites/default && cp default.settings.php settings.php && chmod a+w settings.php && mkdir files && chmod a+w files && mkdir private && mkdir tmp && chmod a+w private && chmod a+w tmp && cd .. && cd .."