aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xdocker/entrypoint.sh3
1 files changed, 3 insertions, 0 deletions
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."