docker-postfix/scripts/cron.sh
Bojan Čekrlić b90b336d04 Fix: Remove unneccessary dependendancy on external logrotate image
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.
2023-10-27 09:38:54 +02:00

7 lines
No EOL
140 B
Bash

#!/bin/sh
if [ -f /usr/sbin/cron ]; then # Ubuntu
exec /usr/sbin/cron -f
else # Alpine / Busybox cron
exec /usr/sbin/crond -f -S
fi