mirror of
https://github.com/bokysan/docker-postfix.git
synced 2024-09-20 06:46:10 +08:00
743d3a0a86
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.
7 lines
140 B
Bash
Executable file
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 |