blogker/init/cron.sh

16 lines
262 B
Bash
Raw Normal View History

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