From 3b3217c6200e36fb8ac0b2dfd45e83538082f0cc Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Sat, 26 Mar 2022 12:32:05 +0300 Subject: docker: run once at startup, even when in cron --- docker/entrypoint.sh | 3 +++ 1 file changed, 3 insertions(+) (limited to 'docker') diff --git a/docker/entrypoint.sh b/docker/entrypoint.sh index 0bd3944..f8bd832 100755 --- a/docker/entrypoint.sh +++ b/docker/entrypoint.sh @@ -28,6 +28,9 @@ cd /usr/src && . /tmp/venv/bin/activate &&$( printf -- ' %q' "$@" )" echo "$script" > /task.sh chmod +x /task.sh +# Run the task once when the container is started, regardless of schedule. +/task.sh + crontab="$schedule /task.sh # This is the new crontab." -- cgit v1.2.3