Skip to content
Snippets Groups Projects
Commit b3dac338 authored by Quentin Duchemin's avatar Quentin Duchemin
Browse files

[Lufi] Fix cron and entrypoint

parent 75c24cf3
No related branches found
No related tags found
No related merge requests found
......@@ -14,7 +14,7 @@ ENV SUPERCRONIC_URL=https://github.com/aptible/supercronic/releases/download/v0.
SUPERCRONIC=supercronic-linux-amd64 \
SUPERCRONIC_SHA1SUM=5ddf8ea26b56d4a7ff6faecdd8966610d5cb9d85
RUN curl -fsSLO "$SUPERCRONIC_URL" \
RUN wget "$SUPERCRONIC_URL" \
&& echo "${SUPERCRONIC_SHA1SUM} ${SUPERCRONIC}" | sha1sum -c - \
&& chmod +x "$SUPERCRONIC" \
&& mv "$SUPERCRONIC" "/usr/local/bin/${SUPERCRONIC}" \
......
#!/bin/sh
echo "Create crontab for cleaning tasks..."
# See https://framagit.org/fiat-tux/hat-softwares/lufi/-/wikis/cron-jobs
......@@ -8,7 +10,7 @@ echo "0 0 * * * carton exec $APP_HOME/script/lufi cron cleanfiles --mode product
echo "Start Lufi..."
exec $@
$@ &
echo "Start supercronic..."
supercronic crontab.conf
supercronic /crontab.conf
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment