diff --git a/pica-lufi/Dockerfile b/pica-lufi/Dockerfile index 5d5e0ffe01a3754e97da9094e78bb94d5de95a64..8ccf1f1deee61ff7c39646cebb0d53924d2949b3 100644 --- a/pica-lufi/Dockerfile +++ b/pica-lufi/Dockerfile @@ -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}" \ diff --git a/pica-lufi/entrypoint.sh b/pica-lufi/entrypoint.sh index 3ff0b5424ec5f35562963f5632e1cffcaee5e07d..6242d64e71cd2ac145d16b1db5f81947a86b018b 100644 --- a/pica-lufi/entrypoint.sh +++ b/pica-lufi/entrypoint.sh @@ -1,3 +1,5 @@ +#!/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