From 3f79b6ef7a17ea015bc9534553277f596c4cdd5a Mon Sep 17 00:00:00 2001 From: Thomas VIAL Date: Mon, 18 Apr 2016 23:21:03 +0200 Subject: [PATCH] Changed log configuration to Dockerfile #109 --- target/start-mailserver.sh | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/target/start-mailserver.sh b/target/start-mailserver.sh index 749d41f5..271103e0 100644 --- a/target/start-mailserver.sh +++ b/target/start-mailserver.sh @@ -262,20 +262,6 @@ SA_TAG2=${SA_TAG2:="6.31"} && sed -i -r 's/^\$sa_tag2_level_deflt (.*);/\$sa_tag SA_KILL=${SA_KILL:="6.31"} && sed -i -r 's/^\$sa_kill_level_deflt (.*);/\$sa_kill_level_deflt = '$SA_KILL';/g' /etc/amavis/conf.d/20-debian_defaults test -e /tmp/spamassassin/rules.cf && cp /tmp/spamassassin/rules.cf /etc/spamassassin/ -# # continue to write the log information in the newly created file after rotating the old log file -# sed -i -r "/^#?compress/c\compress\ncopytruncate" /etc/logrotate.conf - -# # Setup logging -# mkdir -p /var/log/mail && chown syslog:root /var/log/mail -# touch /var/log/mail/clamav.log && chown -R clamav:root /var/log/mail/clamav.log -# touch /var/log/mail/freshclam.log && chown -R clamav:root /var/log/mail/freshclam.log -# sed -i -r 's|/var/log/mail|/var/log/mail/mail|g' /etc/rsyslog.d/50-default.conf -# sed -i -r 's|LogFile /var/log/clamav/|LogFile /var/log/mail/|g' /etc/clamav/clamd.conf -# sed -i -r 's|UpdateLogFile /var/log/clamav/|UpdateLogFile /var/log/mail/|g' /etc/clamav/freshclam.conf -# sed -i -r 's|/var/log/clamav|/var/log/mail|g' /etc/logrotate.d/clamav-daemon -# sed -i -r 's|/var/log/clamav|/var/log/mail|g' /etc/logrotate.d/clamav-freshclam -# sed -i -r 's|/var/log/mail|/var/log/mail/mail|g' /etc/logrotate.d/rsyslog - echo "Starting daemons" cron /etc/init.d/rsyslog start