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

Commit 2d31db9

Browse files
committed
Remove INSTALL and README files from sites.
REF CIVIC-3122
1 parent da34ba1 commit 2d31db9

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.ahoy/site/build.ahoy.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -135,14 +135,16 @@ commands:
135135
find dkan -type d -name .git -exec rm -rf {} \;
136136
find docroot/sites/all -type f -name .gitignore -exec rm -rf {} \;
137137
find docroot/sites/all -type d -name .git -exec rm -rf {} \;
138-
# Clean out any CHANGELOG.txt files.
139-
find . -type f -name CHANGELOG.txt -exec rm -rf {} \;
140138
# Setup custom modules folder outside of the drupal root.
141139
rm -rf docroot/sites/all/modules/custom
142140
rm -rf docroot/sites/all/modules/data_config
143141
ln -s ../../../../assets/modules/data_config docroot/sites/all/modules/data_config
144142
ln -s ../../../../config/modules/custom docroot/sites/all/modules/custom
145143
ln -s ../../../../config/themes/custom docroot/sites/all/themes/custom
144+
# Remove README/INSTALL files for security reasons CIVIC-3122
145+
find ./docroot -type f -name "README*" -exec rm -f {} \;
146+
find ./docroot -type f -name "INSTALL*" -exec rm -f {} \;
147+
find ./docroot -type f -name "CHANGELOG*" -exec rm -rf {} \;
146148
if [ "$(ahoy custom | grep post-build)" != '' ]
147149
then
148150
ahoy custom post-build

0 commit comments

Comments
 (0)