From 907be41752a9894ff6bc9732f0797d6f649f5951 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Slavi=C5=A1a=20Are=C5=BEina?= <58952836+tremor021@users.noreply.github.com> Date: Wed, 30 Jul 2025 17:07:41 +0200 Subject: [PATCH] Fixes (#6378) --- ct/librespeed-rust.sh | 7 ++++--- install/librespeed-rust-install.sh | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/ct/librespeed-rust.sh b/ct/librespeed-rust.sh index e10a9b679..0cf7344ed 100644 --- a/ct/librespeed-rust.sh +++ b/ct/librespeed-rust.sh @@ -27,16 +27,17 @@ function update_script() { msg_error "No ${APP} Installation Found!" exit fi - RELEASE=$(curl -fsSL https://api.github.com/repos/librespeed/speedtest-rust/releases/latest | grep '"tag_name"' | sed -E 's/.*"tag_name": "v([^"]+).*/\1/') + + RELEASE=$(curl -fsSL https://api.github.com/repos/librespeed/speedtest-rust/releases/latest | jq -r '.tag_name' | sed 's/^v//') if [[ "${RELEASE}" != "$(cat ~/.librespeed 2>/dev/null)" ]] || [[ ! -f ~/.librespeed ]]; then msg_info "Stopping Services" - systemctl stop librespeed-rs + systemctl stop librespeed_rs msg_ok "Services Stopped" fetch_and_deploy_gh_release "librespeed-rust" "librespeed/speedtest-rust" "binary" "latest" "/opt/librespeed-rust" "librespeed-rs-x86_64-unknown-linux-gnu.deb" msg_info "Starting Service" - systemctl start librespeed-rs + systemctl start librespeed_rs msg_ok "Started Service" else msg_ok "No update required. ${APP} is already at v${RELEASE}" diff --git a/install/librespeed-rust-install.sh b/install/librespeed-rust-install.sh index 7013543fc..76b607b8f 100644 --- a/install/librespeed-rust-install.sh +++ b/install/librespeed-rust-install.sh @@ -16,7 +16,7 @@ update_os fetch_and_deploy_gh_release "librespeed-rust" "librespeed/speedtest-rust" "binary" "latest" "/opt/librespeed-rust" "librespeed-rs-x86_64-unknown-linux-gnu.deb" msg_info "Enabling Service" -systemctl enable -q --now speedtest_rs.service +systemctl enable -q --now speedtest_rs msg_ok "Enabled Service" motd_ssh