diff --git a/Dockerfile b/Dockerfile index 5098feb3..f13df638 100644 --- a/Dockerfile +++ b/Dockerfile @@ -47,7 +47,8 @@ RUN DEBIAN_FRONTEND=noninteractive apt-get update -q --fix-missing && \ echo "deb http://packages.elastic.co/beats/apt stable main" | tee -a /etc/apt/sources.list.d/beats.list && \ apt-get update -q --fix-missing && apt-get -y upgrade fail2ban filebeat && \ apt-get autoclean && rm -rf /var/lib/apt/lists/* && \ - rm -rf /usr/share/locale/* && rm -rf /usr/share/man/* && rm -rf /usr/share/doc/* + rm -rf /usr/share/locale/* && rm -rf /usr/share/man/* && rm -rf /usr/share/doc/* && \ + touch /var/log/auth.log && update-locale # Enables Clamav RUN (echo "0 0,6,12,18 * * * /usr/bin/freshclam --quiet" ; crontab -l) | crontab - diff --git a/test/tests.bats b/test/tests.bats index dd6ce40c..2fa82550 100644 --- a/test/tests.bats +++ b/test/tests.bats @@ -583,6 +583,11 @@ [ "$status" -eq 1 ] } +@test "checking system: /var/log/auth.log is error free" { + run docker exec mail grep 'Unable to open env file: /etc/default/locale' /var/log/auth.log + [ "$status" -eq 1 ] +} + @test "checking system: sets the server fqdn" { run docker exec mail hostname [ "$status" -eq 0 ]