Update cron

This commit is contained in:
Alexandre
2021-04-07 10:50:43 +02:00
committed by GitHub
parent 97b1557da9
commit 9d9df1b65c

View File

@@ -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