This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
# Build the crontab dynamically from the env variable
|
||||
echo "${JOB_SCHEDULE} pwsh /data/Start-DoneTineNotifier.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
|
||||
Reference in New Issue
Block a user