docker-postfix/scripts/cron.sh
Bojan Čekrlić 743d3a0a86 Fix for #147: Update daemon_directory based on running distribution
This image will now automatically reconfigure `daemon_directory` in case
of distrubution switching.

Alpine and Debian/Ubuntu will use different directly layout and if the
user persists `/etc/postfix`, this image will not start if the
distribution changes.
2023-10-29 23:42:37 +01:00

7 lines
140 B
Bash
Executable file

#!/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