diff --git a/qbittorrent/rootfs/etc/services.d/qbittorrent/timer b/qbittorrent/rootfs/etc/services.d/qbittorrent/timer index b3da8f6e5..ad4e3cf5a 100644 --- a/qbittorrent/rootfs/etc/services.d/qbittorrent/timer +++ b/qbittorrent/rootfs/etc/services.d/qbittorrent/timer @@ -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