From efd2a4083d82813efae682a216ba908ed58b6aae Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Thu, 13 May 2021 14:09:26 +0200 Subject: [PATCH] Update run.sh --- joal/rootfs/run.sh | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/joal/rootfs/run.sh b/joal/rootfs/run.sh index e3eac9e80..309228bd1 100644 --- a/joal/rootfs/run.sh +++ b/joal/rootfs/run.sh @@ -49,12 +49,12 @@ exec nginx || bashio::log.fatal "... Nginx not started, only access through webu # TIMEOUT # ########### -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 !" && \ - kill "$PID" -else - bashio::log.info "... run_for_hours option not defined, addon will run continuously" -fi +#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 !" && \ +# kill "$PID" +#else +# bashio::log.info "... run_duration option not defined, addon will run continuously" +#fi