Files
redmine/pre-entrypoint.sh
Roman Vaníček 20f69cd94c
All checks were successful
continuous-integration/drone/push Build is passing
Cmd arguments are still missing.
2023-03-09 17:36:54 +01:00

17 lines
498 B
Bash

#!/usr/bin/env bash
set -Eeo pipefail
echo "Pre-start $@"
echo "Pre-start $1 $2 $3"
echo "Creating CRON entry for rake redmine:send_reminders"
echo "$REDMINE_SEND_REMINDERS_CRON_EXPR root cd /usr/src/redmine && rake redmine:send_reminders days=$REDMINE_SEND_REMINDERS_DAYS RAILS_ENV=production" > /etc/cron.d/redmine
chmod 0644 /etc/cron.d/redmine
crontab /etc/cron.d/redmine
echo Starting CRON
service cron start
set -- /docker-entrypoint.sh "$@"
echo Executing original Redmine "$@"
exec "$@"