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