mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-11 18:31:02 +01:00
Update 31-run
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user