2022-10-17 10:40:09 +02:00
|
|
|
#!/bin/bash
|
2016-08-29 19:03:45 +02:00
|
|
|
|
2022-03-27 09:43:39 +02:00
|
|
|
# shellcheck source=../scripts/helpers/log.sh
|
|
|
|
source /usr/local/bin/helpers/log.sh
|
2023-02-26 11:42:14 +01:00
|
|
|
# shellcheck source=../scripts/startup/setup.d/fetchmail.sh
|
|
|
|
source /usr/local/bin/setup.d/fetchmail.sh
|
2022-03-27 09:43:39 +02:00
|
|
|
|
2024-05-19 22:32:53 +12:00
|
|
|
# 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
|
2023-02-28 10:25:23 +01:00
|
|
|
ENABLE_FETCHMAIL=1 _setup_fetchmail
|
2016-08-29 19:03:45 +02:00
|
|
|
|
|
|
|
su -s /bin/sh -c "/usr/bin/fetchmail \
|
2020-10-21 18:16:32 +02:00
|
|
|
--verbose \
|
|
|
|
--daemon 0 \
|
|
|
|
--check \
|
|
|
|
--nosyslog \
|
|
|
|
--nodetach \
|
|
|
|
-f /etc/fetchmailrc" fetchmail <&- 2>&1
|