#!/bin/bash set -e # Build the crontab dynamically from the env variable echo "${JOB_SCHEDULE} pwsh /data/Start-DoneTickNotifier.ps1" > /tmp/crontab-runtime echo "Cron schedule set to: ${JOB_SCHEDULE}" # Start supercronic in background using the generated crontab supercronic /tmp/crontab-runtime & # Start the HTTP listener in foreground exec pwsh /data/Start-DoneTickConsumer.ps1