Skip to content
This repository was archived by the owner on Jun 3, 2024. It is now read-only.

Remove INSTALL and README files from sites. #94

Merged
merged 1 commit into from
Feb 17, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions .ahoy/site/build.ahoy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -135,14 +135,16 @@ commands:
find dkan -type d -name .git -exec rm -rf {} \;
find docroot/sites/all -type f -name .gitignore -exec rm -rf {} \;
find docroot/sites/all -type d -name .git -exec rm -rf {} \;
# Clean out any CHANGELOG.txt files.
find . -type f -name CHANGELOG.txt -exec rm -rf {} \;
# Setup custom modules folder outside of the drupal root.
rm -rf docroot/sites/all/modules/custom
rm -rf docroot/sites/all/modules/data_config
ln -s ../../../../assets/modules/data_config docroot/sites/all/modules/data_config
ln -s ../../../../config/modules/custom docroot/sites/all/modules/custom
ln -s ../../../../config/themes/custom docroot/sites/all/themes/custom
# Remove README/INSTALL files for security reasons CIVIC-3122
find ./docroot -type f -name "README*" -exec rm -f {} \;
find ./docroot -type f -name "INSTALL*" -exec rm -f {} \;
find ./docroot -type f -name "CHANGELOG*" -exec rm -rf {} \;
if [ "$(ahoy custom | grep post-build)" != '' ]
then
ahoy custom post-build
Expand Down