Bash alias for post-install clean up

Public

Post Drupal installation Bash alias to 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.

Get raw version
bash
  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

SolarVera.com's picture

Thanks.

Add README.txt.