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 <