mirror of
https://github.com/bokysan/docker-postfix.git
synced 2024-11-10 17:05:00 +08:00
b90b336d04
We now include logrotate in the the basic image. This does -- up to a point -- reduce the "separation of concerns", but it simplifies image management considerably and removes an unneccessary dependency on a third-party container.
19 lines
374 B
Bash
Executable file
19 lines
374 B
Bash
Executable file
#!/bin/sh
|
|
|
|
noop() {
|
|
while true; do
|
|
# 2147483647 = max signed 32-bit integer
|
|
# 2147483647 s ≅ 70 years
|
|
sleep infinity || sleep 2147483647
|
|
done
|
|
}
|
|
|
|
if [ ! -d /etc/opendkim/keys ]; then
|
|
noop
|
|
elif [ -z "$(find /etc/opendkim/keys -type f ! -name .)" ]; then
|
|
noop
|
|
else
|
|
exec /usr/sbin/opendkim -D -f -x /etc/opendkim/opendkim.conf
|
|
fi
|
|
|
|
|