Correct code timer

This commit is contained in:
Alexandre
2021-09-14 07:52:10 +02:00
committed by GitHub
parent 0271afb6b2
commit f06da82bef

View File

@@ -8,11 +8,11 @@ if bashio::config.true 'openvpn_enabled'; then
& bashio::log.info "Addon will stop after $RUNTIME" && \
sleep $RUNTIME && \
bashio::log.info "Timeout achieved, addon will stop !" && \
exec ./finish
bashio::addon.stop
else
exec s6-setuidgid abc /usr/bin/qbittorrent-nox --webui-port="${WEBUI_PORT}" \
& bashio::log.info "Addon will stop after $RUNTIME" && \
sleep $RUNTIME && \
bashio::log.info "Timeout achieved, addon will stop !" && \
exec ./finish
bashio::addon.stop
fi