Bash alias for post-install clean up


Post Drupal installation Bash alias to remove write permissions from settings.php and remove unnecessary files per instructions ( The file removal part isn't really a great security measure, but helpful if you prefer a clean directory.

Get raw version
  1. # remove unnecessary files and set permissions on settings.php
  2. alias 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"

Comments's picture


Add README.txt.