From 276ac07651b186f06f892abbfa151ad8bf81b414 Mon Sep 17 00:00:00 2001 From: Sam Heinz <54530346+asylumexp@users.noreply.github.com> Date: Thu, 24 Oct 2024 12:45:34 +1000 Subject: [PATCH] Port headscale to arm64 Also somehow missed this one --- ct/headscale.sh | 8 ++++---- install/headscale-install.sh | 5 +++-- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/ct/headscale.sh b/ct/headscale.sh index f50347ebe..9f2b7d6ce 100644 --- a/ct/headscale.sh +++ b/ct/headscale.sh @@ -1,5 +1,5 @@ #!/usr/bin/env bash -source <(curl -s https://raw.githubusercontent.com/tteck/Proxmox/main/misc/build.func) +source <(curl -s https://raw.githubusercontent.com/asylumexp/Proxmox/main/misc/build.func) # Copyright (c) 2021-2024 tteck # Author: tteck (tteckster) # License: MIT @@ -63,9 +63,9 @@ if [[ "${RELEASE}" != "$(cat /opt/${APP}_version.txt)" ]] || [[ ! -f /opt/${APP} msg_ok "Stopped ${APP}" msg_info "Updating $APP to v${RELEASE}" - wget -q https://github.com/juanfont/headscale/releases/download/v${RELEASE}/headscale_${RELEASE}_linux_amd64.deb - dpkg -i headscale_${RELEASE}_linux_amd64.deb - rm headscale_${RELEASE}_linux_amd64.deb + wget -q https://github.com/juanfont/headscale/releases/download/v${RELEASE}/headscale_${RELEASE}_linux_arm64.deb + dpkg -i headscale_${RELEASE}_linux_arm64.deb + rm headscale_${RELEASE}_linux_arm64.deb echo "${RELEASE}" >/opt/${APP}_version.txt msg_ok "Updated $APP to ${RELEASE}" diff --git a/install/headscale-install.sh b/install/headscale-install.sh index 9772da47d..d5b5f014c 100644 --- a/install/headscale-install.sh +++ b/install/headscale-install.sh @@ -18,12 +18,13 @@ $STD apt-get install -y curl $STD apt-get install -y sudo $STD apt-get install -y mc $STD apt-get install -y openssh-server +$STD apt-get install -y wget msg_ok "Installed Dependencies" RELEASE=$(curl -s https://api.github.com/repos/juanfont/headscale/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }') msg_info "Installing ${APPLICATION} v${RELEASE}" -wget -q https://github.com/juanfont/headscale/releases/download/v${RELEASE}/headscale_${RELEASE}_linux_amd64.deb -$STD dpkg -i headscale_${RELEASE}_linux_amd64.deb +wget -q https://github.com/juanfont/headscale/releases/download/v${RELEASE}/headscale_${RELEASE}_linux_arm64.deb +$STD dpkg -i headscale_${RELEASE}_linux_arm64.deb systemctl enable -q --now headscale echo "${RELEASE}" >/opt/${APPLICATION}_version.txt msg_ok "Installed ${APPLICATION} v${RELEASE}"