From fb15aae02ce952cc6594c52ed212764417f4cc91 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Wed, 7 Apr 2021 09:38:35 +0200 Subject: [PATCH] Update 31-run --- scrutiny/rootfs/etc/cont-init.d/31-run | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/scrutiny/rootfs/etc/cont-init.d/31-run b/scrutiny/rootfs/etc/cont-init.d/31-run index 0a18ece85..70114e127 100644 --- a/scrutiny/rootfs/etc/cont-init.d/31-run +++ b/scrutiny/rootfs/etc/cont-init.d/31-run @@ -36,14 +36,13 @@ bashio::log.info "Updates every $FREQUENCY" ### Set frequency case $FREQUENCY in "Hourly") - sed -i -e '$a 0 * * * * /run.sh' /etc/crontabs/root + sed -i 's|0 0 * * *|0 * * * *|g' /etc/crontabs/root ;; "Daily") - sed -i -e '$a 0 0 * * * /run.sh' /etc/crontabs/root ;; "Weekly") - sed -i -e '$a 0 0 * * 0 /run.sh' /etc/crontabs/root + sed -i 's|0 0 * * *|0 0 * * 0|g' /etc/crontabs/root ;; esac