Skip to content

Instantly share code, notes, and snippets.

@lrobeson
Last active December 20, 2015 13:49
Show Gist options
  • Save lrobeson/6142121 to your computer and use it in GitHub Desktop.
Save lrobeson/6142121 to your computer and use it in GitHub Desktop.
Bash alias for post Drupal installation to set permissions and remove unnecessary files
# Remove write permissions from settings.php and remove unnecessary files per Drupal.org instructions
# (https://drupal.org/upgrade/finished). The file removal part isn't really a great security measure,
# but helpful if you prefer a clean directory.
alias drupal-post-install-cleanup="chmod a-w sites/default/settings.php && rm CHANGELOG.txt COPYRIGHT.txt install.php INSTALL.mysql.txt INSTALL.pgsql.txt INSTALL.sqlite.txt INSTALL.txt LICENSE.txt MAINTAINERS.txt UPGRADE.txt"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment