15 lines
219 B
Bash
15 lines
219 B
Bash
|
#!/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
|