mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2024-01-19 02:48:50 +00:00
Improve VIRUSMAILS_DELETE_DELAY usage (#2281)
This commit is contained in:
parent
c7dec1e330
commit
b117cd1423
|
@ -30,7 +30,6 @@ ENV POSTGREY_MAX_AGE=35
|
|||
ENV POSTGREY_TEXT="Delayed by Postgrey"
|
||||
ENV SASLAUTHD_MECHANISMS=pam
|
||||
ENV SASLAUTHD_MECH_OPTIONS=""
|
||||
ENV VIRUSMAILS_DELETE_DELAY=7
|
||||
|
||||
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
|
||||
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
#! /bin/bash
|
||||
|
||||
set -e
|
||||
|
||||
# shellcheck source=/dev/null
|
||||
. /etc/dms-settings
|
||||
|
||||
find /var/lib/amavis/virusmails/ -type f -mtime +"${VIRUSMAILS_DELETE_DELAY}" -delete
|
||||
|
|
|
@ -140,7 +140,6 @@ function register_functions
|
|||
[[ ${ENABLE_POSTFIX_VIRTUAL_TRANSPORT:-0} -eq 1 ]] && _register_setup_function '_setup_postfix_virtual_transport'
|
||||
|
||||
_register_setup_function '_setup_postfix_override_configuration'
|
||||
_register_setup_function '_setup_environment'
|
||||
_register_setup_function '_setup_logrotate'
|
||||
_register_setup_function '_setup_mail_summary'
|
||||
_register_setup_function '_setup_logwatch'
|
||||
|
|
|
@ -1720,17 +1720,6 @@ function _setup_user_patches
|
|||
fi
|
||||
}
|
||||
|
||||
function _setup_environment
|
||||
{
|
||||
_notify 'task' 'Setting up /etc/environment'
|
||||
|
||||
if ! grep -q "# Docker Mail Server" /etc/environment
|
||||
then
|
||||
echo "# Docker Mail Server" >>/etc/environment
|
||||
echo "VIRUSMAILS_DELETE_DELAY=${VIRUSMAILS_DELETE_DELAY}" >>/etc/environment
|
||||
fi
|
||||
}
|
||||
|
||||
function _setup_fail2ban
|
||||
{
|
||||
_notify 'task' 'Setting up fail2ban'
|
||||
|
|
Loading…
Reference in a new issue