mirror of
https://github.com/Luzifer/dns.git
synced 2024-12-22 19:01:20 +00:00
Knut Ahlers
ee90549179
The build process of the binary patched with the cron runner was too instable as coredns is not properly vendoring their dependencies. This way the binary is stable (provided by coredns) and the cron is taken over by alpine crond. Signed-off-by: Knut Ahlers <knut@ahlers.me>
12 lines
178 B
Bash
Executable file
12 lines
178 B
Bash
Executable file
#!/usr/local/bin/dumb-init /bin/bash
|
|
set -euxo pipefail
|
|
|
|
if [ "${1:-}" = 'coredns' ]; then
|
|
# Start crond in the background
|
|
crond
|
|
|
|
# Start coredns
|
|
exec "$@"
|
|
fi
|
|
|
|
exec "$@"
|