10 lines
263 B
Bash
Executable File
10 lines
263 B
Bash
Executable File
#!/bin/bash -eu
|
|
|
|
# specific to alpine, won't work with debian
|
|
|
|
# place crontab /!\ UTC time
|
|
printf "ping=\"curl -fsS -m 10 --retry 5 -o /dev/null ${HC_PING}\"\n${SCHEDULE} /app/scripts/runjob.sh && \${ping} || \${ping}/fail \n" | crontab -
|
|
|
|
# start cron
|
|
crond -f
|