mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-05-31 12:54:04 +02:00
Correct cron
This commit is contained in:
@@ -32,13 +32,14 @@ bashio::log.info "$Frequency updates"
|
|||||||
|
|
||||||
case $FREQUENCY in
|
case $FREQUENCY in
|
||||||
"Hourly")
|
"Hourly")
|
||||||
sed -i 's|0 0 * * *|0 * * * *|g' /etc/crontabs/root
|
sed -i -e '$a 0 * * * * /run.sh' /etc/crontabs/root
|
||||||
;;
|
;;
|
||||||
|
|
||||||
"Daily")
|
"Daily")
|
||||||
|
sed -i -e '$a 0 0 * * * /run.sh' /etc/crontabs/root
|
||||||
;;
|
;;
|
||||||
|
|
||||||
"Weekly")
|
"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
|
esac
|
||||||
|
|||||||
Reference in New Issue
Block a user