From 82af7bf2b685d2524e96001401d0e68db4cb7817 Mon Sep 17 00:00:00 2001 From: Thomas VIAL Date: Wed, 11 Jan 2017 09:37:14 +0100 Subject: [PATCH] Fixes missing quote --- Dockerfile | 2 +- target/bin/virus-wiper | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index a633b586..91483e6f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -74,7 +74,7 @@ RUN sed -i -r 's/^(CRON)=0/\1=1/g' /etc/default/spamassassin RUN sed -i -r 's/#(@| \\%)bypass/\1bypass/g' /etc/amavis/conf.d/15-content_filter_mode RUN adduser clamav amavis && adduser amavis clamav RUN useradd -u 5000 -d /home/docker -s /bin/bash -p $(echo docker | openssl passwd -1 -stdin) docker -RUN (echo "0 4 * * * /usr/local/bin/virus-wiper ; crontab -l) | crontab - +RUN (echo "0 4 * * * /usr/local/bin/virus-wiper" ; crontab -l) | crontab - # Configure Fail2ban COPY target/fail2ban/jail.conf /etc/fail2ban/jail.conf diff --git a/target/bin/virus-wiper b/target/bin/virus-wiper index 500367a0..c9a5f336 100644 --- a/target/bin/virus-wiper +++ b/target/bin/virus-wiper @@ -1,4 +1,4 @@ #!/bin/bash -echo "Wipping virus detected more than $VIRUSMAILS_DELETE_DELAY ago" +echo "Wipping virus older than $VIRUSMAILS_DELETE_DELAY days" find /var/lib/amavis/virusmails/ -type f -mtime +$VIRUSMAILS_DELETE_DELAY -delete