From f819c20bbbd7849a19c1e9348cd6c89ed76bb656 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Wed, 7 Apr 2021 10:42:47 +0200 Subject: [PATCH] Correct cron --- scrutiny/rootfs/etc/cont-init.d/31-run | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scrutiny/rootfs/etc/cont-init.d/31-run b/scrutiny/rootfs/etc/cont-init.d/31-run index 4c88c5479..0b378e767 100644 --- a/scrutiny/rootfs/etc/cont-init.d/31-run +++ b/scrutiny/rootfs/etc/cont-init.d/31-run @@ -32,13 +32,14 @@ bashio::log.info "$Frequency updates" case $FREQUENCY in "Hourly") - sed -i 's|0 0 * * *|0 * * * *|g' /etc/crontabs/root + sed -i -e '$a 0 * * * * /run.sh' /etc/crontabs/root ;; "Daily") + sed -i -e '$a 0 0 * * * /run.sh' /etc/crontabs/root ;; "Weekly") - sed -i 's|0 0 * * *|0 0 * * 0|g' /etc/crontabs/root + sed -i -e '$a 0 0 * * 0 /run.sh' /etc/crontabs/root ;; esac