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