Last active
December 20, 2015 13:49
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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