Redirect stderr from cron

This commit is contained in:
Eric Nemchik
2023-11-02 13:11:50 -05:00
committed by GitHub
parent 939dba8345
commit c89a73d4d7
@@ -9,7 +9,7 @@ for cron_user in abc root; do
# if crontabs do not exist in config
if [[ ! -f "/config/crontabs/${cron_user}" ]]; then
# copy crontab from system
if crontab -l -u "${cron_user}" >/dev/null; then
if crontab -l -u "${cron_user}" >/dev/null 2>&1; then
crontab -l -u "${cron_user}" >"/config/crontabs/${cron_user}"
fi