diff --git a/pica-lufi/entrypoint.sh b/pica-lufi/entrypoint.sh index 3a7149c669682c90b85d3e85823b73a61ae1447b..50108dcecc1696d8bfcd75eb5efcb450c4b68518 100644 --- a/pica-lufi/entrypoint.sh +++ b/pica-lufi/entrypoint.sh @@ -20,9 +20,6 @@ if [ -z "${POSTGRES_PASSWORD}" ]; then exit 1 fi -echo "Generate secret key for cookies..." -key=`tr -dc 'a-zA-Z0-9' < /dev/urandom | fold -w 48 | head -n 1` - echo "Create crontab for cleaning tasks..." # See https://framagit.org/fiat-tux/hat-softwares/lufi/-/wikis/cron-jobs @@ -33,7 +30,7 @@ echo "0 0 * * * carton exec $APP_HOME/script/lufi cron cleanfiles --mode product echo "Start Lufi..." -KEY_COOKIE=${key} $@ & +$@ & echo "Start supercronic..." supercronic /crontab.conf diff --git a/pica-lufi/secrets/lufi.secrets.example b/pica-lufi/secrets/lufi.secrets.example index 4616ce956614b2766431168d5506dca7cfc2c7bc..b4059f3731ece0613646d2022998a19350a79951 100644 --- a/pica-lufi/secrets/lufi.secrets.example +++ b/pica-lufi/secrets/lufi.secrets.example @@ -1 +1,4 @@ EMAIL_PASSWORD=password +# Generate one with the following command : +# tr -dc 'a-zA-Z0-9' < /dev/urandom | fold -w 48 | head -n 1 +KEY_COOKIE=