diff --git a/docker/scripts/prod/cron.sh b/docker/scripts/prod/cron.sh new file mode 100644 index 00000000..8eb9e7c9 --- /dev/null +++ b/docker/scripts/prod/cron.sh @@ -0,0 +1,11 @@ +#!/bin/sh +set -e + +echo +echo "-------------------------------------------------------------" +echo " Executing Cron Tasks: $(date)" +echo "-------------------------------------------------------------" +echo + +recyclarr sonarr +recyclarr radarr diff --git a/docker/scripts/prod/entrypoint.sh b/docker/scripts/prod/entrypoint.sh index 0783e1bf..f14c19c1 100644 --- a/docker/scripts/prod/entrypoint.sh +++ b/docker/scripts/prod/entrypoint.sh @@ -16,8 +16,7 @@ if [ "$#" -gt 0 ]; then su-exec recyclarr recyclarr "$@" else echo "Creating crontab file..." - echo "$CRON_SCHEDULE recyclarr sonarr; recyclarr radarr" \ - | crontab -u recyclarr - + echo "$CRON_SCHEDULE /cron.sh" | crontab -u recyclarr - crontab -l -u recyclarr