Delete run

This commit is contained in:
Alexandre
2021-09-13 22:20:31 +02:00
committed by GitHub
parent cdbb9db427
commit 9266d4c92f

View File

@@ -1,15 +0,0 @@
#!/usr/bin/with-contenv bashio
###########
# TIMEOUT #
###########
if bashio::config.has_value 'run_duration'; then
RUNTIME=$(bashio::config 'run_duration')
bashio::log.info "Addon will stop after $RUNTIME"
sleep $RUNTIME && \
bashio::log.info "Timeout achieved, addon will stop !" && \
exec ./finish
else
bashio::log.info "run_duration option not defined, addon will run continuously"
fi