mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2025-08-01 00:25:40 +02:00
feat: Configurable poll rate for check-for-changes.sh
(#4450)
Co-authored-by: Brennan Kinney <5098581+polarathene@users.noreply.github.com> Co-authored-by: Casper <casperklein@users.noreply.github.com>
This commit is contained in:
parent
b653d9a586
commit
f2e5891b16
4 changed files with 24 additions and 1 deletions
|
@ -211,7 +211,7 @@ function _rspamd_changes() {
|
|||
|
||||
while true; do
|
||||
_check_for_changes
|
||||
sleep 2
|
||||
sleep "${DMS_CONFIG_POLL:-2}"
|
||||
done
|
||||
|
||||
exit 0
|
||||
|
|
|
@ -149,6 +149,7 @@ function __environment_variables_general_setup() {
|
|||
_log 'trace' 'Setting miscellaneous environment variables'
|
||||
|
||||
VARS[ACCOUNT_PROVISIONER]="${ACCOUNT_PROVISIONER:=FILE}"
|
||||
VARS[DMS_CONFIG_POLL]="${DMS_CONFIG_POLL:=2}"
|
||||
VARS[FETCHMAIL_PARALLEL]="${FETCHMAIL_PARALLEL:=0}"
|
||||
VARS[FETCHMAIL_POLL]="${FETCHMAIL_POLL:=300}"
|
||||
VARS[GETMAIL_POLL]="${GETMAIL_POLL:=5}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue