Generate SRS secret on first run and store it (#891)

This commit is contained in:
James 2018-03-10 06:41:20 -06:00 committed by Johan Smits
parent e6c32a03e5
commit ef79e9a65d
3 changed files with 25 additions and 4 deletions

View file

@ -92,7 +92,8 @@ RUN apt-get update -q --fix-missing && \
rm -rf /usr/share/doc/* && \
touch /var/log/auth.log && \
update-locale && \
rm -f /etc/cron.weekly/fstrim
rm -f /etc/cron.weekly/fstrim && \
rm -f /etc/postsrsd.secret
RUN echo "0 0,6,12,18 * * * /usr/bin/freshclam --quiet" > /etc/cron.d/freshclam && \
chmod 644 /etc/clamav/freshclam.conf && \