mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-27 09:46:04 +02:00
Update run.sh
This commit is contained in:
@@ -53,9 +53,8 @@ if bashio::config.has_value 'run_for_hours'; then
|
|||||||
RUNTIME=$(bashio::config 'run_for_hours')
|
RUNTIME=$(bashio::config 'run_for_hours')
|
||||||
bashio::log.info "... Addon will stop after $RUNTIME hours"
|
bashio::log.info "... Addon will stop after $RUNTIME hours"
|
||||||
sleep $TIMEOUT && \
|
sleep $TIMEOUT && \
|
||||||
kill "$PID" && \
|
bashio::log.info "... Timeout achieved, addon will stop !" && \
|
||||||
bashio::log.info "... Timeout achieved, addon will stop !"
|
kill "$PID"
|
||||||
|
|
||||||
else
|
else
|
||||||
bashio::log.info "... run_for_hours option not defined, addon will run continuously"
|
bashio::log.info "... run_for_hours option not defined, addon will run continuously"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user