synupkeep/docker-cmd-cron.sh
2021-04-03 17:33:44 +02:00

15 lines
235 B
Bash

#!/bin/sh
cp .crontab.docker /tmp/.crontab
sed -i "s~SYNUPKEEP_DOCKER_CRON_SCHEDULE~$SYNUPKEEP_DOCKER_CRON_SCHEDULE~g" /tmp/.crontab
stop() {
pkill supercronic
sleep 1
}
trap "stop" SIGTERM
supercronic /tmp/.crontab &
wait $!