Skip to content
Snippets Groups Projects
entrypoint.sh 531 B
#!/bin/sh

echo "Create crontab for cleaning tasks..."

# See https://framagit.org/fiat-tux/hat-softwares/lufi/-/wikis/cron-jobs
# Delete the IP addresses of file's senders after a configurable delay
echo "0 0 * * * carton exec $APP_HOME/script/lufi cron cleanbdd --mode production" > /crontab.conf
# Delete files which availability delay is over
echo "0 0 * * * carton exec $APP_HOME/script/lufi cron cleanfiles --mode production" > /crontab.conf


echo "Start Lufi..."
$@ &

echo "Start supercronic..."
supercronic /crontab.conf