From 5e0509d62886384de52766318a7c8b45812caf48 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Thu, 13 May 2021 13:57:01 +0200 Subject: [PATCH] run_duration --- joal/rootfs/run.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/joal/rootfs/run.sh b/joal/rootfs/run.sh index 19ede98d4..e3eac9e80 100644 --- a/joal/rootfs/run.sh +++ b/joal/rootfs/run.sh @@ -49,8 +49,8 @@ exec nginx || bashio::log.fatal "... Nginx not started, only access through webu # TIMEOUT # ########### -if bashio::config.has_value 'run_for_hours'; then - RUNTIME=$(bashio::config 'run_for_hours') +if bashio::config.has_value 'run_duration'; then + RUNTIME=$(bashio::config 'run_duration') bashio::log.info "... Addon will stop after $RUNTIME hours" sleep $TIMEOUT && \ bashio::log.info "... Timeout achieved, addon will stop !" && \