From 6545c0b731f5091ed49e0eae0428d5a445cf7e35 Mon Sep 17 00:00:00 2001 From: Sam Heinz Date: Mon, 22 Jun 2026 23:35:14 +1000 Subject: [PATCH] [arm64] fix update functions to support arm64 (#15290) oops forgot about a few update functions --- ct/agentdvr.sh | 6 +++--- ct/bitfocus-companion.sh | 7 +++++-- ct/configarr.sh | 2 +- ct/duplicati.sh | 2 +- ct/garage.sh | 2 +- ct/gitea.sh | 2 +- ct/github-runner.sh | 2 +- ct/glance.sh | 2 +- ct/go2rtc.sh | 2 +- ct/gogs.sh | 2 +- ct/gokapi.sh | 2 +- ct/gotify.sh | 4 ++-- ct/hev-socks5-server.sh | 2 +- ct/homarr.sh | 2 +- ct/homeassistant.sh | 2 +- ct/homebox.sh | 2 +- ct/hoodik.sh | 2 +- ct/igotify.sh | 2 +- ct/immich.sh | 6 +++--- ct/immichframe.sh | 2 +- ct/isponsorblocktv.sh | 4 ++-- ct/jackett.sh | 2 +- ct/jellyfin.sh | 4 ++-- ct/kavita.sh | 2 +- ct/patchmon.sh | 2 +- ct/pelican-wings.sh | 2 +- ct/photoprism.sh | 4 ++-- ct/pocketid.sh | 2 +- ct/prometheus-alertmanager.sh | 2 +- ct/prometheus-blackbox-exporter.sh | 2 +- ct/prometheus.sh | 2 +- ct/prowlarr.sh | 2 +- ct/pterodactyl-wings.sh | 2 +- ct/pulse.sh | 2 +- ct/qbittorrent.sh | 2 +- ct/sonarr.sh | 2 +- ct/sportarr.sh | 2 +- ct/step-ca.sh | 2 +- ct/stylus.sh | 2 +- ct/tdarr.sh | 2 +- ct/threadfin.sh | 2 +- ct/tinyauth.sh | 2 +- ct/traccar.sh | 2 +- ct/traefik.sh | 2 +- ct/transmute.sh | 6 +++--- ct/trilium.sh | 2 +- ct/tunarr.sh | 4 ++-- ct/uhf.sh | 4 ++-- ct/upgopher.sh | 2 +- ct/upsnap.sh | 2 +- ct/victoriametrics.sh | 10 +++++----- 51 files changed, 71 insertions(+), 68 deletions(-) diff --git a/ct/agentdvr.sh b/ct/agentdvr.sh index 7c0e486ee..73360ced2 100644 --- a/ct/agentdvr.sh +++ b/ct/agentdvr.sh @@ -30,7 +30,7 @@ function update_script() { exit fi - RELEASE=$(curl -fsSL "https://www.ispyconnect.com/api/Agent/DownloadLocation4?platform=Linux64&fromVersion=0" | grep -o 'https://.*\.zip') + RELEASE=$(curl -fsSL "https://www.ispyconnect.com/api/Agent/DownloadLocation4?platform=$(arch_resolve "Linux64" "LinuxARM64")&fromVersion=0" | grep -o 'https://.*\.zip') if [[ "${RELEASE}" != "$(cat ~/.agentdvr 2>/dev/null)" ]] || [[ ! -f ~/.agentdvr ]]; then msg_info "Stopping service" systemctl stop AgentDVR @@ -39,10 +39,10 @@ function update_script() { msg_info "Updating AgentDVR" cd /opt/agentdvr/agent curl -fsSL "$RELEASE" -o $(basename "$RELEASE") - $STD unzip -o Agent_Linux64*.zip + $STD unzip -o Agent_$(arch_resolve "Linux64" "LinuxARM64")*.zip chmod +x ./Agent echo $RELEASE >~/.agentdvr - rm -rf Agent_Linux64*.zip + rm -rf Agent_$(arch_resolve "Linux64" "LinuxARM64")*.zip msg_ok "Updated AgentDVR" msg_info "Starting service" diff --git a/ct/bitfocus-companion.sh b/ct/bitfocus-companion.sh index 368548da1..c6687383c 100644 --- a/ct/bitfocus-companion.sh +++ b/ct/bitfocus-companion.sh @@ -31,11 +31,14 @@ function update_script() { fi RELEASE_JSON=$(curl -fsSL "https://api.bitfocus.io/v1/product/companion/packages?limit=20") - PACKAGE_JSON=$(echo "$RELEASE_JSON" | jq -c '(if type == "array" then . else .packages end) | [.[] | select(.target=="linux-tgz" and (.uri | contains("linux-x64")))] | first') + PACKAGE_JSON=$(echo "$RELEASE_JSON" | jq -c \ + --arg target "linux-$(arch_resolve "tgz" "arm64-tgz")" \ + --arg arch "linux-$(arch_resolve "x64" "arm64")" \ + '(if type == "array" then . else .packages end) | [.[] | select(.target==$target and (.uri | contains($arch)))] | first') RELEASE=$(echo "$PACKAGE_JSON" | jq -r '.version // empty') ASSET_URL=$(echo "$PACKAGE_JSON" | jq -r '.uri // empty') if [[ -z "$RELEASE" || -z "$ASSET_URL" ]]; then - msg_error "Could not resolve a matching Linux x64 Companion package from the Bitfocus API." + msg_error "Could not resolve a matching Linux $(arch_resolve "x64" "arm64") Companion package from the Bitfocus API." exit 1 fi diff --git a/ct/configarr.sh b/ct/configarr.sh index 636e3d8a8..6590f3383 100644 --- a/ct/configarr.sh +++ b/ct/configarr.sh @@ -37,7 +37,7 @@ function update_script() { /opt/configarr/secrets.yml \ /opt/configarr/.env - CLEAN_INSTALL=1 fetch_and_deploy_gh_release "configarr" "raydak-labs/configarr" "prebuild" "latest" "/opt/configarr" "configarr-linux-x64.tar.xz" + CLEAN_INSTALL=1 fetch_and_deploy_gh_release "configarr" "raydak-labs/configarr" "prebuild" "latest" "/opt/configarr" "configarr-linux-$(arch_resolve "x64" "arm64").tar.xz" restore_backup diff --git a/ct/duplicati.sh b/ct/duplicati.sh index 5601f4da0..7770d1de5 100644 --- a/ct/duplicati.sh +++ b/ct/duplicati.sh @@ -34,7 +34,7 @@ function update_script() { systemctl stop duplicati msg_info "Stopped Service" - fetch_and_deploy_gh_release "duplicati" "duplicati/duplicati" "binary" "latest" "/opt/duplicati" "duplicati-*-linux-x64-gui.deb" + fetch_and_deploy_gh_release "duplicati" "duplicati/duplicati" "binary" "latest" "/opt/duplicati" "duplicati-*-linux-$(arch_resolve "x64" "arm64")-gui.deb" msg_info "Starting Service" systemctl start duplicati diff --git a/ct/garage.sh b/ct/garage.sh index b65bccc9a..ebca5a3b4 100644 --- a/ct/garage.sh +++ b/ct/garage.sh @@ -40,7 +40,7 @@ function update_script() { msg_ok "Backed Up Data" msg_info "Updating Garage" - curl -fsSL "https://garagehq.deuxfleurs.fr/_releases/${GITEA_RELEASE}/x86_64-unknown-linux-musl/garage" -o /usr/local/bin/garage + curl -fsSL "https://garagehq.deuxfleurs.fr/_releases/${GITEA_RELEASE}/$(arch_resolve "x86_64" "aarch64")-unknown-linux-musl/garage" -o /usr/local/bin/garage chmod +x /usr/local/bin/garage echo "${GITEA_RELEASE}" >~/.garage msg_ok "Updated Garage" diff --git a/ct/gitea.sh b/ct/gitea.sh index 5bc3d35e2..f29289de8 100644 --- a/ct/gitea.sh +++ b/ct/gitea.sh @@ -35,7 +35,7 @@ function update_script() { msg_ok "Service stopped" rm -rf /usr/local/bin/gitea - fetch_and_deploy_gh_release "gitea" "go-gitea/gitea" "singlefile" "latest" "/usr/local/bin" "gitea-*-linux-amd64" + fetch_and_deploy_gh_release "gitea" "go-gitea/gitea" "singlefile" "latest" "/usr/local/bin" "gitea-*-linux-$(arch_resolve)" chmod +x /usr/local/bin/gitea msg_info "Starting service" diff --git a/ct/github-runner.sh b/ct/github-runner.sh index f2734fb4e..6bc0a36bc 100644 --- a/ct/github-runner.sh +++ b/ct/github-runner.sh @@ -46,7 +46,7 @@ function update_script() { done msg_ok "Backed up configuration" - CLEAN_INSTALL=1 fetch_and_deploy_gh_release "actions-runner" "actions/runner" "prebuild" "latest" "/opt/actions-runner" "actions-runner-linux-x64-*.tar.gz" + CLEAN_INSTALL=1 fetch_and_deploy_gh_release "actions-runner" "actions/runner" "prebuild" "latest" "/opt/actions-runner" "actions-runner-linux-$(arch_resolve "x64" "arm64")-*.tar.gz" msg_info "Restoring runner configuration" for f in .runner .credentials .credentials_rsaparams .env .path; do diff --git a/ct/glance.sh b/ct/glance.sh index e33a264b0..d98eaca00 100644 --- a/ct/glance.sh +++ b/ct/glance.sh @@ -43,7 +43,7 @@ function update_script() { systemctl stop glance msg_ok "Stopped Service" - CLEAN_INSTALL=1 fetch_and_deploy_gh_release "glance" "glanceapp/glance" "prebuild" "latest" "/opt/glance" "glance-linux-amd64.tar.gz" + CLEAN_INSTALL=1 fetch_and_deploy_gh_release "glance" "glanceapp/glance" "prebuild" "latest" "/opt/glance" "glance-linux-$(arch_resolve).tar.gz" msg_info "Starting Service" systemctl start glance diff --git a/ct/go2rtc.sh b/ct/go2rtc.sh index 55635befd..bee6a2479 100644 --- a/ct/go2rtc.sh +++ b/ct/go2rtc.sh @@ -35,7 +35,7 @@ function update_script() { systemctl stop go2rtc msg_ok "Stopped service" - fetch_and_deploy_gh_release "go2rtc" "AlexxIT/go2rtc" "singlefile" "latest" "/opt/go2rtc" "go2rtc_linux_amd64" + fetch_and_deploy_gh_release "go2rtc" "AlexxIT/go2rtc" "singlefile" "latest" "/opt/go2rtc" "go2rtc_linux_$(arch_resolve)" msg_info "Starting service" systemctl start go2rtc diff --git a/ct/gogs.sh b/ct/gogs.sh index f714e6d1d..d00561852 100644 --- a/ct/gogs.sh +++ b/ct/gogs.sh @@ -40,7 +40,7 @@ function update_script() { cp -r /opt/gogs/data /opt/gogs_data_backup msg_ok "Backed up Data" - CLEAN_INSTALL=1 fetch_and_deploy_gh_release "gogs" "gogs/gogs" "prebuild" "latest" "/opt/gogs" "gogs_*_linux_amd64.tar.gz" + CLEAN_INSTALL=1 fetch_and_deploy_gh_release "gogs" "gogs/gogs" "prebuild" "latest" "/opt/gogs" "gogs_*_linux_$(arch_resolve).tar.gz" msg_info "Restoring Data" cp -r /opt/gogs_custom_backup/. /opt/gogs/custom diff --git a/ct/gokapi.sh b/ct/gokapi.sh index ee06611fe..8024187f7 100644 --- a/ct/gokapi.sh +++ b/ct/gokapi.sh @@ -33,7 +33,7 @@ function update_script() { systemctl stop gokapi msg_ok "Stopped Service" - fetch_and_deploy_gh_release "gokapi" "Forceu/Gokapi" "prebuild" "latest" "/opt/gokapi" "*linux*amd64.zip" + fetch_and_deploy_gh_release "gokapi" "Forceu/Gokapi" "prebuild" "latest" "/opt/gokapi" "*linux*$(arch_resolve).zip" # Migrate from pre-v2.2.4 binary name (gokapi-linux_amd64 -> gokapi) if [[ -f /opt/gokapi/gokapi-linux_amd64 ]]; then diff --git a/ct/gotify.sh b/ct/gotify.sh index c1c963bf9..0615a2342 100644 --- a/ct/gotify.sh +++ b/ct/gotify.sh @@ -33,8 +33,8 @@ function update_script() { systemctl stop gotify msg_ok "Stopped Service" - fetch_and_deploy_gh_release "gotify" "gotify/server" "prebuild" "latest" "/opt/gotify" "gotify-linux-amd64.zip" - chmod +x /opt/gotify/gotify-linux-amd64 + fetch_and_deploy_gh_release "gotify" "gotify/server" "prebuild" "latest" "/opt/gotify" "gotify-linux-$(arch_resolve).zip" + chmod +x /opt/gotify/gotify-linux-$(arch_resolve) msg_info "Starting Service" systemctl start gotify diff --git a/ct/hev-socks5-server.sh b/ct/hev-socks5-server.sh index 734b118ab..3b9ffe873 100644 --- a/ct/hev-socks5-server.sh +++ b/ct/hev-socks5-server.sh @@ -36,7 +36,7 @@ function update_script() { systemctl stop hev-socks5-server msg_ok "Stopped Service" - fetch_and_deploy_gh_release "hev-socks5-server" "heiher/hev-socks5-server" "singlefile" "latest" "/opt" "hev-socks5-server-linux-x86_64" + fetch_and_deploy_gh_release "hev-socks5-server" "heiher/hev-socks5-server" "singlefile" "latest" "/opt" "hev-socks5-server-linux-$(arch_resolve "x86_64" "arm64")" msg_info "Starting Service" systemctl start hev-socks5-server diff --git a/ct/homarr.sh b/ct/homarr.sh index df0eb342f..c288cab41 100644 --- a/ct/homarr.sh +++ b/ct/homarr.sh @@ -62,7 +62,7 @@ EOF NODE_VERSION=$(curl -s https://raw.githubusercontent.com/homarr-labs/homarr/dev/package.json | jq -r '.engines.node | split(">=")[1] | split(".")[0]') setup_nodejs - CLEAN_INSTALL=1 fetch_and_deploy_gh_release "homarr" "homarr-labs/homarr" "prebuild" "latest" "/opt/homarr" "build-debian-amd64.tar.gz" + CLEAN_INSTALL=1 fetch_and_deploy_gh_release "homarr" "homarr-labs/homarr" "prebuild" "latest" "/opt/homarr" "build-debian-$(arch_resolve).tar.gz" msg_info "Updating Homarr" cp /opt/homarr/redis.conf /etc/redis/redis.conf diff --git a/ct/homeassistant.sh b/ct/homeassistant.sh index fd725f821..8bdc36d30 100644 --- a/ct/homeassistant.sh +++ b/ct/homeassistant.sh @@ -71,7 +71,7 @@ function update_script() { if [ "$UPD" == "4" ]; then msg_info "Installing FileBrowser" RELEASE=$(curl -fsSL https://api.github.com/repos/filebrowser/filebrowser/releases/latest | grep -o '"tag_name": ".*"' | sed 's/"//g' | sed 's/tag_name: //g') - $STD curl -fsSL https://github.com/filebrowser/filebrowser/releases/download/v2.23.0/linux-amd64-filebrowser.tar.gz | tar -xzv -C /usr/local/bin + $STD curl -fsSL https://github.com/filebrowser/filebrowser/releases/download/v2.23.0/linux-$(arch_resolve)-filebrowser.tar.gz | tar -xzv -C /usr/local/bin $STD filebrowser config init -a '0.0.0.0' $STD filebrowser config set -a '0.0.0.0' $STD filebrowser users add admin community-scripts.org --perm.admin diff --git a/ct/homebox.sh b/ct/homebox.sh index 3ebb6ea64..3d956ee8d 100644 --- a/ct/homebox.sh +++ b/ct/homebox.sh @@ -39,7 +39,7 @@ function update_script() { systemctl stop homebox msg_ok "Stopped Service" - CLEAN_INSTALL=1 fetch_and_deploy_gh_release "homebox" "sysadminsmedia/homebox" "prebuild" "latest" "/opt/homebox" "homebox_Linux_x86_64.tar.gz" + CLEAN_INSTALL=1 fetch_and_deploy_gh_release "homebox" "sysadminsmedia/homebox" "prebuild" "latest" "/opt/homebox" "homebox_Linux_$(arch_resolve "x86_64" "arm64").tar.gz" chmod +x /opt/homebox/homebox [ -f /opt/.env ] && mv /opt/.env /opt/homebox/.env [ -d /opt/.data ] && mv /opt/.data /opt/homebox/.data diff --git a/ct/hoodik.sh b/ct/hoodik.sh index 65f50fbbc..c81e3f32f 100644 --- a/ct/hoodik.sh +++ b/ct/hoodik.sh @@ -40,7 +40,7 @@ function update_script() { cp /opt/hoodik/.env /opt/hoodik.env.bak msg_ok "Backed up Configuration" - CLEAN_INSTALL=1 fetch_and_deploy_gh_release "hoodik" "hudikhq/hoodik" "prebuild" "latest" "/opt/hoodik" "*x86_64.tar.gz" + CLEAN_INSTALL=1 fetch_and_deploy_gh_release "hoodik" "hudikhq/hoodik" "prebuild" "latest" "/opt/hoodik" "*$(arch_resolve "x86_64" "arm64").tar.gz" msg_info "Restoring Configuration" cp /opt/hoodik.env.bak /opt/hoodik/.env diff --git a/ct/igotify.sh b/ct/igotify.sh index 5f73f384a..aad49d7fe 100644 --- a/ct/igotify.sh +++ b/ct/igotify.sh @@ -39,7 +39,7 @@ function update_script() { cp /opt/igotify/.env /opt/igotify.env.bak msg_ok "Backed up Configuration" - CLEAN_INSTALL=1 fetch_and_deploy_gh_release "igotify" "androidseb25/iGotify-Notification-Assistent" "prebuild" "latest" "/opt/igotify" "iGotify-Notification-Service-amd64-v*.zip" + CLEAN_INSTALL=1 fetch_and_deploy_gh_release "igotify" "androidseb25/iGotify-Notification-Assistent" "prebuild" "latest" "/opt/igotify" "iGotify-Notification-Service-$(arch_resolve)-v*.zip" msg_info "Restoring Configuration" cp /opt/igotify.env.bak /opt/igotify/.env diff --git a/ct/immich.sh b/ct/immich.sh index 53d1d9699..e97231997 100644 --- a/ct/immich.sh +++ b/ct/immich.sh @@ -67,7 +67,7 @@ EOF if [[ ! -f /etc/apt/sources.list.d/mise.list ]]; then msg_info "Installing Mise" curl -fSs https://mise.jdx.dev/gpg-key.pub | tee /etc/apt/keyrings/mise-archive-keyring.pub 1>/dev/null - echo "deb [signed-by=/etc/apt/keyrings/mise-archive-keyring.pub arch=amd64] https://mise.jdx.dev/deb stable main" >/etc/apt/sources.list.d/mise.list + echo "deb [signed-by=/etc/apt/keyrings/mise-archive-keyring.pub arch=$(arch_resolve)] https://mise.jdx.dev/deb stable main" >/etc/apt/sources.list.d/mise.list ensure_dependencies mise msg_ok "Installed Mise" fi @@ -127,7 +127,7 @@ EOF VCHORD_RELEASE="0.5.3" [[ -f ~/.vchord_version ]] && mv ~/.vchord_version ~/.vectorchord if check_for_gh_release "VectorChord" "tensorchord/VectorChord" "${VCHORD_RELEASE}" "updated together with Immich after testing"; then - fetch_and_deploy_gh_release "VectorChord" "tensorchord/VectorChord" "binary" "${VCHORD_RELEASE}" "/tmp" "postgresql-16-vchord_*_amd64.deb" + fetch_and_deploy_gh_release "VectorChord" "tensorchord/VectorChord" "binary" "${VCHORD_RELEASE}" "/tmp" "postgresql-16-vchord_*_$(arch_resolve).deb" systemctl restart postgresql $STD sudo -u postgres psql -d immich -c "ALTER EXTENSION vector UPDATE;" $STD sudo -u postgres psql -d immich -c "ALTER EXTENSION vchord UPDATE;" @@ -240,7 +240,7 @@ EOF $STD sudo --preserve-env=VIRTUAL_ENV,UV_HTTP_TIMEOUT -nu immich uv sync --extra openvino --no-dev --active --link-mode copy -n -p "${ML_PYTHON}" --managed-python && break [[ $attempt -lt 3 ]] && msg_warn "uv sync attempt $attempt failed, retrying..." && sleep 10 done - patchelf --clear-execstack "${VIRTUAL_ENV}/lib/python3.13/site-packages/onnxruntime/capi/onnxruntime_pybind11_state.cpython-313-x86_64-linux-gnu.so" + patchelf --clear-execstack "${VIRTUAL_ENV}/lib/python3.13/site-packages/onnxruntime/capi/onnxruntime_pybind11_state.cpython-313-$(arch_resolve "x86_64" "aarch64")-linux-gnu.so" msg_ok "Updated Intel OpenVINO machine-learning" else ML_PYTHON="python3.11" diff --git a/ct/immichframe.sh b/ct/immichframe.sh index e0ee17aad..3abf19051 100644 --- a/ct/immichframe.sh +++ b/ct/immichframe.sh @@ -45,7 +45,7 @@ function update_script() { cd /tmp/immichframe $STD dotnet publish ImmichFrame.WebApi/ImmichFrame.WebApi.csproj \ --configuration Release \ - --runtime linux-x64 \ + --runtime "$(arch_resolve "linux-x64" "linux-arm64")" \ --self-contained false \ --output /opt/immichframe diff --git a/ct/isponsorblocktv.sh b/ct/isponsorblocktv.sh index 43de41c19..f1ebc374b 100644 --- a/ct/isponsorblocktv.sh +++ b/ct/isponsorblocktv.sh @@ -36,9 +36,9 @@ function update_script() { systemctl stop isponsorblocktv msg_ok "Stopped Service" - ISBTV_BINARY="iSponsorBlockTV-x86_64-linux-v1" + ISBTV_BINARY="iSponsorBlockTV-$(arch_resolve "x86_64-linux-v1" "aarch64-linux")" if grep -q ' avx ' /proc/cpuinfo 2>/dev/null && grep -q ' avx2 ' /proc/cpuinfo 2>/dev/null && grep -q ' movbe ' /proc/cpuinfo 2>/dev/null; then - ISBTV_BINARY="iSponsorBlockTV-x86_64-linux" + ISBTV_BINARY="iSponsorBlockTV-$(arch_resolve "x86_64" "aarch64")-linux" fi CLEAN_INSTALL=1 fetch_and_deploy_gh_release "isponsorblocktv" "dmunozv04/iSponsorBlockTV" "singlefile" "latest" "/opt/isponsorblocktv" "${ISBTV_BINARY}" diff --git a/ct/jackett.sh b/ct/jackett.sh index 1d414e662..f08ba37ea 100644 --- a/ct/jackett.sh +++ b/ct/jackett.sh @@ -41,7 +41,7 @@ EOF systemctl stop jackett msg_ok "Stopped Service" - CLEAN_INSTALL=1 fetch_and_deploy_gh_release "jackett" "Jackett/Jackett" "prebuild" "latest" "/opt/Jackett" "Jackett.Binaries.LinuxAMDx64.tar.gz" + CLEAN_INSTALL=1 fetch_and_deploy_gh_release "jackett" "Jackett/Jackett" "prebuild" "latest" "/opt/Jackett" "Jackett.Binaries.Linux$(arch_resolve "AMDx64" "ARM64").tar.gz" msg_info "Starting Service" systemctl start jackett diff --git a/ct/jellyfin.sh b/ct/jellyfin.sh index ab8f33b23..f497d916e 100644 --- a/ct/jellyfin.sh +++ b/ct/jellyfin.sh @@ -30,7 +30,7 @@ function update_script() { exit fi - if ! grep -qEi 'ubuntu' /etc/os-release; then + if ! grep -qEi 'ubuntu' /etc/os-release && [[ "$(arch_resolve)" == "amd64" ]]; then msg_info "Updating Intel Dependencies" rm -f ~/.intel-* || true @@ -57,7 +57,7 @@ function update_script() { msg_info "Updating Jellyfin" ensure_dependencies libjemalloc2 if [[ ! -f /usr/lib/libjemalloc.so ]]; then - ln -sf /usr/lib/x86_64-linux-gnu/libjemalloc.so.2 /usr/lib/libjemalloc.so + ln -sf "/usr/lib/$(arch_resolve "x86_64-linux-gnu" "aarch64-linux-gnu")/libjemalloc.so.2" /usr/lib/libjemalloc.so fi $STD apt -y upgrade $STD apt -y --with-new-pkgs upgrade jellyfin jellyfin-server jellyfin-ffmpeg7 diff --git a/ct/kavita.sh b/ct/kavita.sh index e69855cb0..f12acf119 100644 --- a/ct/kavita.sh +++ b/ct/kavita.sh @@ -34,7 +34,7 @@ function update_script() { systemctl stop kavita msg_ok "Service Stopped" - fetch_and_deploy_gh_release "kavita" "Kareadita/Kavita" "prebuild" "latest" "/opt/Kavita" "kavita-linux-x64.tar.gz" + fetch_and_deploy_gh_release "kavita" "Kareadita/Kavita" "prebuild" "latest" "/opt/Kavita" "kavita-linux-$(arch_resolve "x64" "arm64").tar.gz" chmod +x /opt/Kavita/Kavita && chown root:root /opt/Kavita/Kavita msg_info "Starting Service" diff --git a/ct/patchmon.sh b/ct/patchmon.sh index 81523244e..9414c5a73 100644 --- a/ct/patchmon.sh +++ b/ct/patchmon.sh @@ -73,7 +73,7 @@ function update_script() { msg_ok "Migration complete!" fi - CLEAN_INSTALL=1 fetch_and_deploy_gh_release "PatchMon" "PatchMon/PatchMon" "singlefile" "latest" "/opt/patchmon" "patchmon-server-linux-amd64" + CLEAN_INSTALL=1 fetch_and_deploy_gh_release "PatchMon" "PatchMon/PatchMon" "singlefile" "latest" "/opt/patchmon" "patchmon-server-linux-$(arch_resolve)" mv /opt/patchmon/PatchMon /opt/patchmon/patchmon-server msg_info "Fetching PatchMon agent binaries" diff --git a/ct/pelican-wings.sh b/ct/pelican-wings.sh index 8b96d8a67..b8a8666a1 100644 --- a/ct/pelican-wings.sh +++ b/ct/pelican-wings.sh @@ -34,7 +34,7 @@ function update_script() { systemctl stop wings msg_ok "Stopped Service" - fetch_and_deploy_gh_release "wings" "pelican-dev/wings" "singlefile" "latest" "/usr/local/bin" "wings_linux_amd64" + fetch_and_deploy_gh_release "wings" "pelican-dev/wings" "singlefile" "latest" "/usr/local/bin" "wings_linux_$(arch_resolve)" msg_info "Starting Service" systemctl start wings diff --git a/ct/photoprism.sh b/ct/photoprism.sh index 1c1b3740e..7e8d15e46 100644 --- a/ct/photoprism.sh +++ b/ct/photoprism.sh @@ -43,9 +43,9 @@ function update_script() { msg_ok "Added environment export" fi - fetch_and_deploy_gh_release "photoprism" "photoprism/photoprism" "prebuild" "latest" "/opt/photoprism" "*linux-amd64.tar.gz" + fetch_and_deploy_gh_release "photoprism" "photoprism/photoprism" "prebuild" "latest" "/opt/photoprism" "*linux-$(arch_resolve).tar.gz" - LIBHEIF_URL=$(curl -fsSL "https://dl.photoprism.app/dist/libheif/" | grep -oP "libheif-bookworm-amd64-v[0-9\.]+\.tar\.gz" | sort -V | tail -n 1) + LIBHEIF_URL=$(curl -fsSL "https://dl.photoprism.app/dist/libheif/" | grep -oP "libheif-bookworm-$(arch_resolve)-v[0-9\.]+\.tar\.gz" | sort -V | tail -n 1) if [[ "${LIBHEIF_URL}" != "$(cat ~/.photoprism_libheif 2>/dev/null)" ]] || [[ ! -f ~/.photoprism_libheif ]]; then msg_info "Updating PhotoPrism LibHeif" ensure_dependencies libvips42 diff --git a/ct/pocketid.sh b/ct/pocketid.sh index a1c818e9c..6153b40c0 100755 --- a/ct/pocketid.sh +++ b/ct/pocketid.sh @@ -71,7 +71,7 @@ function update_script() { cp /opt/pocket-id/.env /opt/env fi - fetch_and_deploy_gh_release "pocket-id" "pocket-id/pocket-id" "singlefile" "latest" "/opt/pocket-id/" "pocket-id-linux-amd64" + fetch_and_deploy_gh_release "pocket-id" "pocket-id/pocket-id" "singlefile" "latest" "/opt/pocket-id/" "pocket-id-linux-$(arch_resolve)" mv /opt/env /opt/pocket-id/.env msg_info "Starting Service" diff --git a/ct/prometheus-alertmanager.sh b/ct/prometheus-alertmanager.sh index b7456a833..2f006a424 100755 --- a/ct/prometheus-alertmanager.sh +++ b/ct/prometheus-alertmanager.sh @@ -33,7 +33,7 @@ function update_script() { systemctl stop prometheus-alertmanager msg_ok "Stopped Service" - fetch_and_deploy_gh_release "alertmanager" "prometheus/alertmanager" "prebuild" "latest" "/usr/local/bin/" "alertmanager*linux-amd64.tar.gz" + fetch_and_deploy_gh_release "alertmanager" "prometheus/alertmanager" "prebuild" "latest" "/usr/local/bin/" "alertmanager*linux-$(arch_resolve).tar.gz" msg_info "Starting Service" systemctl start prometheus-alertmanager diff --git a/ct/prometheus-blackbox-exporter.sh b/ct/prometheus-blackbox-exporter.sh index a2a9e8924..0f7072314 100644 --- a/ct/prometheus-blackbox-exporter.sh +++ b/ct/prometheus-blackbox-exporter.sh @@ -38,7 +38,7 @@ function update_script() { mv /opt/blackbox-exporter/blackbox.yml /opt msg_ok "Backup created" - CLEAN_INSTALL=1 fetch_and_deploy_gh_release "blackbox-exporter" "prometheus/blackbox_exporter" "prebuild" "latest" "/opt/blackbox-exporter" "blackbox_exporter-*.linux-amd64.tar.gz" + CLEAN_INSTALL=1 fetch_and_deploy_gh_release "blackbox-exporter" "prometheus/blackbox_exporter" "prebuild" "latest" "/opt/blackbox-exporter" "blackbox_exporter-*.linux-$(arch_resolve).tar.gz" msg_info "Restoring backup" cp -r /opt/blackbox.yml /opt/blackbox-exporter diff --git a/ct/prometheus.sh b/ct/prometheus.sh index 3b10fdb43..d6507ba29 100644 --- a/ct/prometheus.sh +++ b/ct/prometheus.sh @@ -33,7 +33,7 @@ function update_script() { systemctl stop prometheus msg_ok "Stopped Service" - fetch_and_deploy_gh_release "prometheus" "prometheus/prometheus" "prebuild" "latest" "/usr/local/bin" "*linux-amd64.tar.gz" + fetch_and_deploy_gh_release "prometheus" "prometheus/prometheus" "prebuild" "latest" "/usr/local/bin" "*linux-$(arch_resolve).tar.gz" rm -f /usr/local/bin/prometheus.yml msg_info "Starting Service" diff --git a/ct/prowlarr.sh b/ct/prowlarr.sh index e3c5e6ce2..548e3e834 100644 --- a/ct/prowlarr.sh +++ b/ct/prowlarr.sh @@ -34,7 +34,7 @@ function update_script() { msg_ok "Stopped Service" rm -rf /opt/Prowlarr - fetch_and_deploy_gh_release "prowlarr" "Prowlarr/Prowlarr" "prebuild" "latest" "/opt/Prowlarr" "Prowlarr.master*linux-core-x64.tar.gz" + fetch_and_deploy_gh_release "prowlarr" "Prowlarr/Prowlarr" "prebuild" "latest" "/opt/Prowlarr" "Prowlarr.master*linux-core-$(arch_resolve "x64" "arm64").tar.gz" chmod 775 /opt/Prowlarr msg_info "Starting Service" diff --git a/ct/pterodactyl-wings.sh b/ct/pterodactyl-wings.sh index b59912be2..92e5be251 100644 --- a/ct/pterodactyl-wings.sh +++ b/ct/pterodactyl-wings.sh @@ -35,7 +35,7 @@ function update_script() { msg_ok "Stopped Service" rm /usr/local/bin/wings - fetch_and_deploy_gh_release "wings" "pterodactyl/wings" "singlefile" "latest" "/usr/local/bin" "wings_linux_amd64" + fetch_and_deploy_gh_release "wings" "pterodactyl/wings" "singlefile" "latest" "/usr/local/bin" "wings_linux_$(arch_resolve)" msg_info "Starting Service" systemctl start wings diff --git a/ct/pulse.sh b/ct/pulse.sh index ecf7eef73..fe0235fd4 100644 --- a/ct/pulse.sh +++ b/ct/pulse.sh @@ -39,7 +39,7 @@ function update_script() { rm -f /opt/pulse/pulse fi - CLEAN_INSTALL=1 fetch_and_deploy_gh_release "pulse" "rcourtman/Pulse" "prebuild" "latest" "/opt/pulse" "pulse-v*-linux-amd64.tar.gz" + CLEAN_INSTALL=1 fetch_and_deploy_gh_release "pulse" "rcourtman/Pulse" "prebuild" "latest" "/opt/pulse" "pulse-v*-linux-$(arch_resolve).tar.gz" ln -sf /opt/pulse/bin/pulse /usr/local/bin/pulse mkdir -p /etc/pulse chown pulse:pulse /etc/pulse diff --git a/ct/qbittorrent.sh b/ct/qbittorrent.sh index a3f581179..9ffb5260d 100644 --- a/ct/qbittorrent.sh +++ b/ct/qbittorrent.sh @@ -38,7 +38,7 @@ function update_script() { msg_ok "Stopped Service" rm -f /opt/qbittorrent/qbittorrent-nox - fetch_and_deploy_gh_release "qbittorrent" "userdocs/qbittorrent-nox-static" "singlefile" "latest" "/opt/qbittorrent" "x86_64-qbittorrent-nox" + fetch_and_deploy_gh_release "qbittorrent" "userdocs/qbittorrent-nox-static" "singlefile" "latest" "/opt/qbittorrent" "$(arch_resolve "x86_64" "aarch64")-qbittorrent-nox" mv /opt/qbittorrent/qbittorrent /opt/qbittorrent/qbittorrent-nox msg_info "Starting Service" diff --git a/ct/sonarr.sh b/ct/sonarr.sh index 31a6e0ff0..bf45b463e 100644 --- a/ct/sonarr.sh +++ b/ct/sonarr.sh @@ -35,7 +35,7 @@ function update_script() { systemctl stop sonarr msg_ok "Stopped Service" - CLEAN_INSTALL=1 fetch_and_deploy_gh_release "Sonarr" "Sonarr/Sonarr" "prebuild" "latest" "/opt/Sonarr" "Sonarr.main.*.linux-x64.tar.gz" + CLEAN_INSTALL=1 fetch_and_deploy_gh_release "Sonarr" "Sonarr/Sonarr" "prebuild" "latest" "/opt/Sonarr" "Sonarr.main.*.linux-$(arch_resolve "x64" "arm64").tar.gz" msg_info "Starting Service" systemctl start sonarr diff --git a/ct/sportarr.sh b/ct/sportarr.sh index 99e18e662..126adac86 100644 --- a/ct/sportarr.sh +++ b/ct/sportarr.sh @@ -34,7 +34,7 @@ function update_script() { systemctl stop sportarr msg_ok "Stopped Services" - fetch_and_deploy_gh_release "sportarr" "Sportarr/Sportarr" "prebuild" "latest" "/opt/sportarr" "Sportarr-linux-x64-*.tar.gz" + fetch_and_deploy_gh_release "sportarr" "Sportarr/Sportarr" "prebuild" "latest" "/opt/sportarr" "Sportarr-linux-$(arch_resolve "x64" "arm64")-*.tar.gz" msg_info "Starting Services" systemctl start sportarr diff --git a/ct/step-ca.sh b/ct/step-ca.sh index 3f02b838f..3c0eef66e 100644 --- a/ct/step-ca.sh +++ b/ct/step-ca.sh @@ -57,7 +57,7 @@ function update_script() { msg_ok "Updated step-ca and step-cli" if check_for_gh_release "step-badger" "lukasz-lobocki/step-badger"; then - fetch_and_deploy_gh_release "step-badger" "lukasz-lobocki/step-badger" "prebuild" "latest" "/opt/step-badger" "step-badger_Linux_x86_64.tar.gz" + fetch_and_deploy_gh_release "step-badger" "lukasz-lobocki/step-badger" "prebuild" "latest" "/opt/step-badger" "step-badger_Linux_$(arch_resolve "x86_64" "arm64").tar.gz" msg_ok "Updated step-badger" fi exit diff --git a/ct/stylus.sh b/ct/stylus.sh index 16f1cacd5..8eecfb7b1 100644 --- a/ct/stylus.sh +++ b/ct/stylus.sh @@ -35,7 +35,7 @@ function update_script() { systemctl stop stylus msg_info "Stopped Service" - fetch_and_deploy_gh_release "stylus" "mmastrac/stylus" "singlefile" "latest" "/usr/bin/" "*_linux_amd64" + fetch_and_deploy_gh_release "stylus" "mmastrac/stylus" "singlefile" "latest" "/usr/bin/" "*_linux_$(arch_resolve)" msg_info "Starting Service" systemctl start stylus diff --git a/ct/tdarr.sh b/ct/tdarr.sh index fdf2dec69..fad25eccf 100644 --- a/ct/tdarr.sh +++ b/ct/tdarr.sh @@ -34,7 +34,7 @@ function update_script() { $STD apt upgrade -y rm -rf /opt/tdarr/Tdarr_Updater cd /opt/tdarr - RELEASE=$(curl_with_retry "https://f000.backblazeb2.com/file/tdarrs/versions.json" "-" | grep -oP '(?<="Tdarr_Updater": ")[^"]+' | grep linux_x64 | head -n 1) + RELEASE=$(curl_with_retry "https://f000.backblazeb2.com/file/tdarrs/versions.json" "-" | grep -oP '(?<="Tdarr_Updater": ")[^"]+' | grep "linux_$(arch_resolve "x64" "arm64")" | head -n 1) curl_with_retry "$RELEASE" "Tdarr_Updater.zip" $STD unzip Tdarr_Updater.zip chmod +x Tdarr_Updater diff --git a/ct/threadfin.sh b/ct/threadfin.sh index d027de51c..462de9ca1 100644 --- a/ct/threadfin.sh +++ b/ct/threadfin.sh @@ -35,7 +35,7 @@ function update_script() { systemctl stop threadfin msg_ok "Stopped Service" - fetch_and_deploy_gh_release "threadfin-app" "threadfin/threadfin" "singlefile" "latest" "/opt/threadfin" "Threadfin_linux_amd64" + fetch_and_deploy_gh_release "threadfin-app" "threadfin/threadfin" "singlefile" "latest" "/opt/threadfin" "Threadfin_linux_$(arch_resolve)" mv /opt/threadfin/threadfin-app /opt/threadfin/threadfin msg_info "Starting Service" diff --git a/ct/tinyauth.sh b/ct/tinyauth.sh index 60e3892c7..4209e974a 100644 --- a/ct/tinyauth.sh +++ b/ct/tinyauth.sh @@ -34,7 +34,7 @@ function update_script() { systemctl stop tinyauth msg_ok "Stopped Service" - fetch_and_deploy_gh_release "tinyauth" "tinyauthapp/tinyauth" "singlefile" "latest" "/opt/tinyauth" "tinyauth-amd64" + fetch_and_deploy_gh_release "tinyauth" "tinyauthapp/tinyauth" "singlefile" "latest" "/opt/tinyauth" "tinyauth-$(arch_resolve)" msg_info "Starting Service" systemctl start tinyauth diff --git a/ct/traccar.sh b/ct/traccar.sh index 24db56252..174e45f70 100644 --- a/ct/traccar.sh +++ b/ct/traccar.sh @@ -40,7 +40,7 @@ function update_script() { [[ -d /opt/traccar/media ]] && mv /opt/traccar/media /opt msg_ok "Backup created" - CLEAN_INSTALL=1 fetch_and_deploy_gh_release "traccar" "traccar/traccar" "prebuild" "latest" "/opt/traccar" "traccar-linux-64*.zip" + CLEAN_INSTALL=1 fetch_and_deploy_gh_release "traccar" "traccar/traccar" "prebuild" "latest" "/opt/traccar" "traccar-linux-$(arch_resolve "64*" "arm-*").zip" msg_info "Perform Update" cd /opt/traccar diff --git a/ct/traefik.sh b/ct/traefik.sh index 1c5f5cb96..523f648ef 100644 --- a/ct/traefik.sh +++ b/ct/traefik.sh @@ -34,7 +34,7 @@ function update_script() { systemctl stop traefik msg_ok "Stopped Service" - fetch_and_deploy_gh_release "traefik" "traefik/traefik" "prebuild" "latest" "/usr/bin" "traefik_v*_linux_amd64.tar.gz" + fetch_and_deploy_gh_release "traefik" "traefik/traefik" "prebuild" "latest" "/usr/bin" "traefik_v*_linux_$(arch_resolve).tar.gz" msg_info "Starting Service" systemctl start traefik diff --git a/ct/transmute.sh b/ct/transmute.sh index 694960303..4b107744d 100644 --- a/ct/transmute.sh +++ b/ct/transmute.sh @@ -30,10 +30,10 @@ function update_script() { exit fi - fetch_and_deploy_gh_release "calibre" "kovidgoyal/calibre" "prebuild" "latest" "/opt/calibre" "calibre-*-x86_64.txz" + fetch_and_deploy_gh_release "calibre" "kovidgoyal/calibre" "prebuild" "latest" "/opt/calibre" "calibre-*-$(arch_resolve "x86_64" "arm64").txz" ln -sf /opt/calibre/ebook-convert /usr/bin/ebook-convert - fetch_and_deploy_gh_release "drawio" "jgraph/drawio-desktop" "binary" "latest" "" "drawio-amd64-*.deb" - fetch_and_deploy_gh_release "pandoc" "jgm/pandoc" "binary" "latest" "" "pandoc-*-amd64.deb" + fetch_and_deploy_gh_release "drawio" "jgraph/drawio-desktop" "binary" "latest" "" "drawio-$(arch_resolve)-*.deb" + fetch_and_deploy_gh_release "pandoc" "jgm/pandoc" "binary" "latest" "" "pandoc-*-$(arch_resolve).deb" if check_for_gh_release "transmute" "transmute-app/transmute"; then msg_info "Stopping Service" diff --git a/ct/trilium.sh b/ct/trilium.sh index 334554d4c..66f7c1b06 100644 --- a/ct/trilium.sh +++ b/ct/trilium.sh @@ -51,7 +51,7 @@ function update_script() { rm -rf /opt/trilium msg_ok "Backed up Database" - fetch_and_deploy_gh_release "Trilium" "TriliumNext/Trilium" "prebuild" "latest" "/opt/trilium" "TriliumNotes-Server-*linux-x64.tar.xz" + fetch_and_deploy_gh_release "Trilium" "TriliumNext/Trilium" "prebuild" "latest" "/opt/trilium" "TriliumNotes-Server-*linux-$(arch_resolve "x64" "arm64").tar.xz" msg_info "Restoring Database" mkdir -p "$(dirname "${DB_RESTORE_PATH}")" diff --git a/ct/tunarr.sh b/ct/tunarr.sh index b29cd0abd..b19cd13a6 100644 --- a/ct/tunarr.sh +++ b/ct/tunarr.sh @@ -41,7 +41,7 @@ function update_script() { msg_error "Backup failed: /root/.local/share/tunarr does not exist" fi - CLEAN_INSTALL=1 fetch_and_deploy_gh_release "tunarr" "chrisbenincasa/tunarr" "prebuild" "latest" "/opt/tunarr" "*linux-x64.tar.gz" + CLEAN_INSTALL=1 fetch_and_deploy_gh_release "tunarr" "chrisbenincasa/tunarr" "prebuild" "latest" "/opt/tunarr" "*linux-$(arch_resolve "x64" "arm64").tar.gz" cd /opt/tunarr mv tunarr* tunarr @@ -56,7 +56,7 @@ function update_script() { systemctl stop tunarr msg_ok "Stopped Service" - CLEAN_INSTALL=1 fetch_and_deploy_gh_release "ersatztv-ffmpeg" "ErsatzTV/ErsatzTV-ffmpeg" "prebuild" "latest" "/opt/ErsatzTV-ffmpeg" "*-linux64-gpl-7.1.tar.xz" + CLEAN_INSTALL=1 fetch_and_deploy_gh_release "ersatztv-ffmpeg" "ErsatzTV/ErsatzTV-ffmpeg" "prebuild" "latest" "/opt/ErsatzTV-ffmpeg" "*-linux$(arch_resolve "64" "arm64")-gpl-7.1.tar.xz" msg_info "Set ErsatzTV-ffmpeg links" chmod +x /opt/ErsatzTV-ffmpeg/bin/* diff --git a/ct/uhf.sh b/ct/uhf.sh index f81bd45f4..fabb2f6ed 100644 --- a/ct/uhf.sh +++ b/ct/uhf.sh @@ -44,8 +44,8 @@ function update_script() { apt remove ffmpeg -y && apt autoremove -y fi setup_ffmpeg - fetch_and_deploy_gh_release "comskip" "swapplications/comskip" "prebuild" "latest" "/opt/comskip" "comskip-x64-*.zip" - fetch_and_deploy_gh_release "uhf-server" "swapplications/uhf-server-dist" "prebuild" "latest" "/opt/uhf-server" "UHF.Server-linux-x64-*.zip" + fetch_and_deploy_gh_release "comskip" "swapplications/comskip" "prebuild" "latest" "/opt/comskip" "comskip-$(arch_resolve "x64" "arm64")-*.zip" + fetch_and_deploy_gh_release "uhf-server" "swapplications/uhf-server-dist" "prebuild" "latest" "/opt/uhf-server" "UHF.Server-linux-$(arch_resolve "x64" "arm64")-*.zip" msg_ok "Updated UHF Server" msg_info "Starting Service" diff --git a/ct/upgopher.sh b/ct/upgopher.sh index 9004f9049..067bd4b23 100644 --- a/ct/upgopher.sh +++ b/ct/upgopher.sh @@ -34,7 +34,7 @@ function update_script() { systemctl stop upgopher msg_ok "Stopped Service" - fetch_and_deploy_gh_release "upgopher" "wanetty/upgopher" "prebuild" "latest" "/opt/upgopher" "upgopher_*_linux_amd64.tar.gz" + fetch_and_deploy_gh_release "upgopher" "wanetty/upgopher" "prebuild" "latest" "/opt/upgopher" "upgopher_*_linux_$(arch_resolve).tar.gz" chmod +x /opt/upgopher/upgopher msg_info "Starting Service" diff --git a/ct/upsnap.sh b/ct/upsnap.sh index 056eebbe6..7fec8506d 100644 --- a/ct/upsnap.sh +++ b/ct/upsnap.sh @@ -34,7 +34,7 @@ function update_script() { systemctl stop upsnap msg_ok "Stopped Services" - fetch_and_deploy_gh_release "upsnap" "seriousm4x/UpSnap" "prebuild" "latest" "/opt/upsnap" "UpSnap_*_linux_amd64.zip" + fetch_and_deploy_gh_release "upsnap" "seriousm4x/UpSnap" "prebuild" "latest" "/opt/upsnap" "UpSnap_*_linux_$(arch_resolve).zip" msg_info "Starting Services" systemctl start upsnap diff --git a/ct/victoriametrics.sh b/ct/victoriametrics.sh index c81392bec..e6c8e5c2a 100644 --- a/ct/victoriametrics.sh +++ b/ct/victoriametrics.sh @@ -38,13 +38,13 @@ function update_script() { msg_ok "Stopped Service" victoriametrics_release=$(curl -fsSL "https://api.github.com/repos/VictoriaMetrics/VictoriaMetrics/releases" | - jq -r '.[] | select(.assets[].name | match("^victoria-metrics-linux-amd64-v[0-9.]+.tar.gz$")) | .tag_name' | + jq -r --arg a "$(arch_resolve)" '.[] | select(.assets[].name | match("^victoria-metrics-linux-" + $a + "-v[0-9.]+.tar.gz$")) | .tag_name' | head -n 1) msg_debug "Using release $victoriametrics_release" - victoriametrics_filename="victoria-metrics-linux-amd64-${victoriametrics_release}.tar.gz" - vmutils_filename="vmutils-linux-amd64-${victoriametrics_release}.tar.gz" + victoriametrics_filename="victoria-metrics-linux-$(arch_resolve)-${victoriametrics_release}.tar.gz" + vmutils_filename="vmutils-linux-$(arch_resolve)-${victoriametrics_release}.tar.gz" fetch_and_deploy_gh_release "victoriametrics" "VictoriaMetrics/VictoriaMetrics" "prebuild" "$victoriametrics_release" "/opt/victoriametrics" "$victoriametrics_filename" fetch_and_deploy_gh_release "vmutils" "VictoriaMetrics/VictoriaMetrics" "prebuild" "$victoriametrics_release" "/opt/victoriametrics" "$vmutils_filename" @@ -52,10 +52,10 @@ function update_script() { if [[ -f /etc/systemd/system/victoriametrics-logs.service ]]; then vmlogs_filename=$(curl -fsSL "https://api.github.com/repos/VictoriaMetrics/VictoriaLogs/releases/latest" | jq -r '.assets[].name' | - grep -E '^victoria-logs-linux-amd64-v[0-9.]+\.tar\.gz$') + grep -E "^victoria-logs-linux-$(arch_resolve)-v[0-9.]+\.tar\.gz$") vlutils_filename=$(curl -fsSL "https://api.github.com/repos/VictoriaMetrics/VictoriaLogs/releases/latest" | jq -r '.assets[].name' | - grep -E '^vlutils-linux-amd64-v[0-9.]+\.tar\.gz$') + grep -E "^vlutils-linux-$(arch_resolve)-v[0-9.]+\.tar\.gz$") fetch_and_deploy_gh_release "victorialogs" "VictoriaMetrics/VictoriaLogs" "prebuild" "latest" "/opt/victoriametrics" "$vmlogs_filename" fetch_and_deploy_gh_release "vlutils" "VictoriaMetrics/VictoriaLogs" "prebuild" "latest" "/opt/victoriametrics" "$vlutils_filename"