supercow/init/10-cron.sh
2024-08-12 14:20:28 +02:00

11 lines
227 B
Bash
Executable File

#!/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