supercow/init/10-cron.sh

11 lines
227 B
Bash
Raw Permalink Normal View History

2024-08-12 12:20:28 +00:00
#!/bin/bash -e
# Run the pull script regularly
target="/aux/build.sh"
entry="*/10 * * * * $target"
grep "$target" /etc/cron.d/supercow || echo "$entry" >> /etc/cron.d/supercow
# start cron daemon (goes into background)
cron