Commit 5d1d57b1 authored by sokai's avatar sokai

better cron modularisation (usage of new vaiables)

parent d3eef8bd
......@@ -51,7 +51,7 @@ start() {
if ! $(grep -q ${SCRIPT} ${CRONTAB}); then
CRONJOB="${CRONINTERVAL} * * * * ${SCRIPT} update # FreiFunkPotsdam-AccessPointsDataBase"
echo "${CRONJOB}" >> ${CRONTAB}
echo "${CRONTABUSER}" > /var/spool/cron/crontabs/cron.update # reload crontab
echo "${CRONTABUSER}" > ${CRONTABPATH}cron.update # reload crontab
logger -t ${SCRIPTNAME} "cron job for user ${CRONTABUSER} added (${SCRIPT} start)"
update
fi
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment