mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-02 05:44:03 +02:00
Update cron
This commit is contained in:
@@ -26,11 +26,13 @@ grep -rl 'api/' /app | xargs sed -i 's|api/|./api/|g' || true
|
|||||||
# CRON OPTIONS #
|
# CRON OPTIONS #
|
||||||
################
|
################
|
||||||
|
|
||||||
FREQUENCY=$(bashio::config 'Updates')
|
# Remove default daily update
|
||||||
|
|
||||||
bashio::log.info "$Frequency updates"
|
|
||||||
sed -i '$d' /etc/crontabs/root
|
sed -i '$d' /etc/crontabs/root
|
||||||
|
|
||||||
|
# Align update with options
|
||||||
|
FREQUENCY=$(bashio::config 'Updates')
|
||||||
|
bashio::log.info "$Frequency updates"
|
||||||
|
|
||||||
case $FREQUENCY in
|
case $FREQUENCY in
|
||||||
"Hourly")
|
"Hourly")
|
||||||
sed -i -e '$a 0 * * * * /run.sh' /etc/crontabs/root
|
sed -i -e '$a 0 * * * * /run.sh' /etc/crontabs/root
|
||||||
|
|||||||
Reference in New Issue
Block a user