assemblybot/files/entrypoint.sh

15 lines
219 B
Bash
Raw Permalink Normal View History

#!/bin/bash
# Create crontab with current environment variables
(
printenv
echo
cat /crontab.tpl
) > /etc/cron.d/assembly-cron
# Install crontab
crontab /etc/cron.d/assembly-cron
# Run cron daemon
exec cron -f