Update and rename 99-run to 49-run

This commit is contained in:
Alexandre
2021-04-07 08:36:33 +02:00
committed by GitHub
parent 5662b4512f
commit 82da3c8311

View File

@@ -21,3 +21,29 @@ grep -rl '"lt-md":"(max-width: 959px)"' /app | xargs sed -i 's|"lt-md":"(max-wi
# allow true url for ingress
grep -rl '/api/' /app | xargs sed -i 's|/api/|api/|g' || true
grep -rl 'api/' /app | xargs sed -i 's|api/|./api/|g' || true
################
# CRON OPTIONS #
################
### Remove previous values
rm /config/crontabs/*
### Variables
FREQUENCY=$(bashio::config 'Updates')
bashio::log.info "Updates every $FREQUENCY"
### Set frequency
case $FREQUENCY in
"Hourly")
sed -i -e '$a 0 * * * * /run.sh' /etc/crontabs/root
;;
"Daily")
sed -i -e '$a 0 * * * * /run.sh' /etc/crontabs/root
;;
"Weekly")
sed -i -e '$a 0 * * * * /run.sh' /etc/crontabs/root
;;
esac