From b3dac3386181364ca87bfa824c15e17f0e134703 Mon Sep 17 00:00:00 2001 From: Quentin Duchemin <quentinduchemin@tuta.io> Date: Sun, 16 Aug 2020 19:52:08 +0200 Subject: [PATCH] [Lufi] Fix cron and entrypoint --- pica-lufi/Dockerfile | 2 +- pica-lufi/entrypoint.sh | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/pica-lufi/Dockerfile b/pica-lufi/Dockerfile index 5d5e0ffe..8ccf1f1d 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 3ff0b542..6242d64e 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 -- GitLab