Update run

This commit is contained in:
Alexandre
2021-09-13 22:05:49 +02:00
committed by GitHub
parent 4e46a51855
commit 9cdcf59e3f

View File

@@ -9,9 +9,7 @@ if bashio::config.has_value 'run_duration'; then
bashio::log.info "Addon will stop after $RUNTIME" bashio::log.info "Addon will stop after $RUNTIME"
sleep $RUNTIME && \ sleep $RUNTIME && \
bashio::log.info "Timeout achieved, addon will stop !" && \ bashio::log.info "Timeout achieved, addon will stop !" && \
if -n { s6-test $# -ne 0 } ./finish
if -n { s6-test ${1} -eq 256 }
s6-svscanctl -t /var/run/s6/services
else else
bashio::log.info "run_duration option not defined, addon will run continuously" bashio::log.info "run_duration option not defined, addon will run continuously"
fi fi