From 792e4f6f9bcc0463179bcd11503800ec352ba8c1 Mon Sep 17 00:00:00 2001 From: Name <2718612@2178972821991.net> Date: Thu, 23 Apr 2026 10:03:45 -0600 Subject: [PATCH] changes --- src/update_api.sh | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/src/update_api.sh b/src/update_api.sh index 06a073b0..6f968c71 100755 --- a/src/update_api.sh +++ b/src/update_api.sh @@ -3,7 +3,7 @@ set -euo pipefail # Fetch and install the lqos_api binary into src/bin (or an alternate destination) -# - Downloads https://download.libreqos.com/api2.zip +# - Downloads https://download.libreqos.com/api3.zip by default # - Extracts the single file lqos_api # - Places it into ./bin alongside other binaries (override with --bin-dir) @@ -11,18 +11,21 @@ SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" TMP_ZIP="$(mktemp /tmp/lqos_api.XXXXXX.zip)" BIN_DIR="${LQOS_API_BIN_DIR:-$SCRIPT_DIR/bin}" +API_URL="${LQOS_API_URL:-https://download.libreqos.com/api3.zip}" RESTART_SERVICE="${LQOS_API_RESTART_SERVICE:-1}" usage() { cat <