docker-min: remove cleanup of /usr/share/doc

There are no files in those directories to clean up.
--excludedocs is doing its job.
This commit is contained in:
Dusty Mabe 2017-01-19 22:08:32 -05:00
parent 4109ebf261
commit 46c10b3c76
No known key found for this signature in database
GPG Key ID: 3302DBD73952E671

View File

@ -70,18 +70,6 @@ systemd-tmpfiles --create --boot
rm -f /etc/machine-id
touch /etc/machine-id
# Strip documentation
find usr/share/doc/ -type f |
(while read line; do
bn=$(basename ${line});
if echo ${bn} | grep -Eiq '^(COPYING|LICENSE)'; then
continue
else
rm $line
fi;
done)
rm usr/share/doc/{info,man} -rf
rm usr/share/gnupg/help*.txt -f
# See: https://bugzilla.redhat.com/show_bug.cgi?id=1051816