#!/bin/sh # Derived from https://roboslang.blog/post/2017-12-06-cron-docker/ set -e scriptPath=$(dirname "$(readlink -f "$0")") printenv | sed 's/^\(.*\)$/export \1/g' > ${scriptPath}/.env.sh chmod +x ${scriptPath}/.env.sh # Run the command on container start. ${scriptPath}/cloudflare-ddns-update # Start crond with log level 8 in foreground, output to stderr. crond -f -d 8