blogker/init/cron.sh
2023-10-14 15:53:09 +02:00

16 lines
264 B
Bash
Executable File

#!/bin/sh
# stop on error
set -e
if [ "$BUILDFREQ" == "" ]; then
# set default
BUILDFREQ=10
fi
# Run the pull script regularly
echo "*/$BUILDFREQ * * * * /aux/pull-n-build.sh" >> /var/spool/cron/crontabs/root
# start cron daemon (goes into background)
crond