mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-08 08:35:57 +02:00
run_duration
This commit is contained in:
@@ -49,8 +49,8 @@ exec nginx || bashio::log.fatal "... Nginx not started, only access through webu
|
|||||||
# TIMEOUT #
|
# TIMEOUT #
|
||||||
###########
|
###########
|
||||||
|
|
||||||
if bashio::config.has_value 'run_for_hours'; then
|
if bashio::config.has_value 'run_duration'; then
|
||||||
RUNTIME=$(bashio::config 'run_for_hours')
|
RUNTIME=$(bashio::config 'run_duration')
|
||||||
bashio::log.info "... Addon will stop after $RUNTIME hours"
|
bashio::log.info "... Addon will stop after $RUNTIME hours"
|
||||||
sleep $TIMEOUT && \
|
sleep $TIMEOUT && \
|
||||||
bashio::log.info "... Timeout achieved, addon will stop !" && \
|
bashio::log.info "... Timeout achieved, addon will stop !" && \
|
||||||
|
|||||||
Reference in New Issue
Block a user