aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/docker
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2022-03-26 12:32:05 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2022-03-26 12:32:05 +0300
commit3b3217c6200e36fb8ac0b2dfd45e83538082f0cc (patch)
treee31ee223965dfa4de25784eb96e4e14476ef6c61 /docker
parentv2.6.1 (diff)
downloadcgitize-3b3217c6200e36fb8ac0b2dfd45e83538082f0cc.tar.gz
cgitize-3b3217c6200e36fb8ac0b2dfd45e83538082f0cc.zip
docker: run once at startup, even when in cron
Diffstat (limited to 'docker')
-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."