mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-16 17:38:17 +01: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 #
|
||||
################
|
||||
|
||||
FREQUENCY=$(bashio::config 'Updates')
|
||||
|
||||
bashio::log.info "$Frequency updates"
|
||||
# Remove default daily update
|
||||
sed -i '$d' /etc/crontabs/root
|
||||
|
||||
# Align update with options
|
||||
FREQUENCY=$(bashio::config 'Updates')
|
||||
bashio::log.info "$Frequency updates"
|
||||
|
||||
case $FREQUENCY in
|
||||
"Hourly")
|
||||
sed -i -e '$a 0 * * * * /run.sh' /etc/crontabs/root
|
||||
|
||||
Reference in New Issue
Block a user