From be15f109e26e0a2da160d2d541c2ef8e6e1b1f1f Mon Sep 17 00:00:00 2001 From: Tobias <96661824+CrazyWolf13@users.noreply.github.com> Date: Fri, 21 Nov 2025 11:10:55 +0100 Subject: [PATCH] reorder --- tools/addon/qbittorrent-exporter.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tools/addon/qbittorrent-exporter.sh b/tools/addon/qbittorrent-exporter.sh index 81fa91f2d..53bef10e5 100644 --- a/tools/addon/qbittorrent-exporter.sh +++ b/tools/addon/qbittorrent-exporter.sh @@ -14,6 +14,7 @@ CONFIG_PATH="/opt/qbittorrent-exporter.env" SRC_DIR="/" TMP_BIN="/tmp/qbittorrent-exporter.$$" header_info +ensure_usr_local_bin_persist # Get primary IP IFACE=$(ip -4 route | awk '/default/ {print $5; exit}') @@ -58,9 +59,10 @@ if [[ -f "$INSTALL_PATH" ]]; then echo -n "Update ${APP}? (y/N): " read -r update_prompt if [[ "${update_prompt,,}" =~ ^(y|yes)$ ]]; then - msg_info "Updating ${APP}" + fetch_and_deploy_gh_release "qbittorrent-exporter" "martabal/qbittorrent-exporter" setup_go + msg_info "Updating ${APP}" cd /opt/qbittorrent-exporter /usr/local/bin/go get -d -v cd src @@ -90,9 +92,9 @@ if ! [[ "${install_prompt,,}" =~ ^(y|yes)$ ]]; then exit 0 fi -msg_info "Installing ${APP} on ${OS}" fetch_and_deploy_gh_release "qbittorrent-exporter" "martabal/qbittorrent-exporter" setup_go +msg_info "Installing ${APP} on ${OS}" cd /opt/qbittorrent-exporter /usr/local/bin/go get -d -v cd src