don't update crontab file if ENV missing

This commit is contained in:
Paolo Asperti 2022-10-19 22:44:42 +02:00
parent febac4d60f
commit 6a63e9cd88
Signed by: paspo
GPG Key ID: 06D46905D19D5182
1 changed files with 3 additions and 1 deletions

View File

@ -1,5 +1,7 @@
#!/bin/sh
echo "${CRONTAB}" > /crontabs/root
if [ ! -z "${CRONTAB}" ] ; then
echo "${CRONTAB}" > /crontabs/roota
fi
/usr/sbin/crond -f -d8 -L /var/log/cron.log -c /crontabs