-f option removed from rm commands

Let build fail, if file does not exist.
This commit is contained in:
Casper 2020-04-19 11:39:43 +02:00 committed by GitHub
parent 5d79e56bf0
commit 78fd5b8760
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -111,8 +111,8 @@ RUN \
rm -rf /usr/share/doc/* && \ rm -rf /usr/share/doc/* && \
touch /var/log/auth.log && \ touch /var/log/auth.log && \
update-locale && \ update-locale && \
rm -f /etc/postsrsd.secret && \ rm /etc/postsrsd.secret && \
rm -f /etc/cron.daily/00logwatch rm /etc/cron.daily/00logwatch
RUN echo "0 */6 * * * clamav /usr/bin/freshclam --quiet" > /etc/cron.d/clamav-freshclam && \ RUN echo "0 */6 * * * clamav /usr/bin/freshclam --quiet" > /etc/cron.d/clamav-freshclam && \
chmod 644 /etc/clamav/freshclam.conf && \ chmod 644 /etc/clamav/freshclam.conf && \