diff --git a/docker/entrypoint.sh b/docker/entrypoint.sh index cc337f0..b123623 100755 --- a/docker/entrypoint.sh +++ b/docker/entrypoint.sh @@ -1,5 +1,7 @@ #!/bin/sh -echo "${CRONTAB}" > /crontabs/root +if [ ! -z "${CRONTAB}" ] ; then + echo "${CRONTAB}" > /crontabs/roota +fi /usr/sbin/crond -f -d8 -L /var/log/cron.log -c /crontabs