mirror of
https://github.com/TrezOne/docker-mods-uptime-kuma-timeout-fix.git
synced 2026-07-19 09:53:02 -04:00
Redirect stderr from cron
This commit is contained in:
@@ -9,7 +9,7 @@ for cron_user in abc root; do
|
|||||||
# if crontabs do not exist in config
|
# if crontabs do not exist in config
|
||||||
if [[ ! -f "/config/crontabs/${cron_user}" ]]; then
|
if [[ ! -f "/config/crontabs/${cron_user}" ]]; then
|
||||||
# copy crontab from system
|
# 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}"
|
crontab -l -u "${cron_user}" >"/config/crontabs/${cron_user}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user