All checks were successful
continuous-integration/drone/push Build is passing
17 lines
498 B
Bash
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 "$@" |