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