[arm64] fix update functions to support arm64 (#15290)

oops forgot about a few update functions
This commit is contained in:
Sam Heinz
2026-06-22 23:35:14 +10:00
committed by GitHub
parent 826311c0d6
commit 6545c0b731
51 changed files with 71 additions and 68 deletions
+3 -3
View File
@@ -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"