mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-11 10:21:02 +01:00
Update run.sh
This commit is contained in:
@@ -51,7 +51,7 @@ exec nginx & \
|
||||
|
||||
if bashio::config.has_value 'run_duration'; then
|
||||
RUNTIME=$(bashio::config 'run_duration')
|
||||
bashio::log.info "... Addon will stop after $RUNTIME hours"
|
||||
bashio::log.info "... Addon will stop after $RUNTIME"
|
||||
sleep $RUNTIME && \
|
||||
bashio::log.info "... Timeout achieved, addon will stop !" && \
|
||||
kill "$PID"
|
||||
|
||||
Reference in New Issue
Block a user