mirror of
https://github.com/docker-mailserver/docker-mailserver
synced 2024-12-18 14:04:17 +01:00
ed669bd314
Fixes an issue with the Getmail service, view PR thread for additional details. - Log an error when the expected service state directory doesn't exist. - The location `/var/lib/getmail/` doesn't seem like it should have been introduced. Drop it in favor of `/tmp/docker-mailserver/getmail`. It appears to be for storing remote mail that was retrieved if not configured to send to Dovecot like our docs advise. This location was never valid anyway (_as referenced issue covers_).
23 lines
657 B
Bash
Executable File
23 lines
657 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# shellcheck source=../scripts/helpers/log.sh
|
|
source /usr/local/bin/helpers/log.sh
|
|
# shellcheck source=../scripts/startup/setup.d/fetchmail.sh
|
|
source /usr/local/bin/setup.d/fetchmail.sh
|
|
|
|
# TODO: This should probably not implicitly enable the feature.
|
|
# The setup method will feature gate and output a debug log if
|
|
# the feature is not enabled.
|
|
#
|
|
# Dropping the ENV here will require updating legacy test:
|
|
# test/tests/parallel/set3/scripts/setup_cli.bats
|
|
ENABLE_FETCHMAIL=1 _setup_fetchmail
|
|
|
|
su -s /bin/sh -c "/usr/bin/fetchmail \
|
|
--verbose \
|
|
--daemon 0 \
|
|
--check \
|
|
--nosyslog \
|
|
--nodetach \
|
|
-f /etc/fetchmailrc" fetchmail <&- 2>&1
|