diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2022-03-26 12:32:05 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2022-03-26 12:32:05 +0300 |
commit | 3b3217c6200e36fb8ac0b2dfd45e83538082f0cc (patch) | |
tree | e31ee223965dfa4de25784eb96e4e14476ef6c61 /docker | |
parent | v2.6.1 (diff) | |
download | cgitize-3b3217c6200e36fb8ac0b2dfd45e83538082f0cc.tar.gz cgitize-3b3217c6200e36fb8ac0b2dfd45e83538082f0cc.zip |
docker: run once at startup, even when in cron
Diffstat (limited to 'docker')
-rwxr-xr-x | docker/entrypoint.sh | 3 |
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." |