dockerfiles/tasks/entrypoint.sh

12 lines
150 B
Bash
Raw Normal View History

2020-04-08 13:05:07 +02:00
#!/bin/sh
set -e
[ -f /tasks/tasks.cron ] && crontab /tasks/tasks.cron
if [ -n "$*" ]; then
exec "$@"
else
exec crond -f -L /dev/stdout
fi