From e051e414a8e0a81b2cb031b3d402914cf83a592e Mon Sep 17 00:00:00 2001 From: CanbiZ <47820557+MickLesk@users.noreply.github.com> Date: Tue, 21 Jan 2025 19:42:38 +0100 Subject: [PATCH] Update actualbudget-install.sh --- install/actualbudget-install.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/install/actualbudget-install.sh b/install/actualbudget-install.sh index d52eee3f..5eca5833 100644 --- a/install/actualbudget-install.sh +++ b/install/actualbudget-install.sh @@ -37,9 +37,10 @@ $STD npm install --global yarn msg_ok "Installed Node.js" msg_info "Installing Actual Budget" -RELEASE=$(curl -s https://api.github.com/repos/actualbudget/actual-server/tags | jq --raw-output '.[0].name') -wget -q https://github.com/actualbudget/actual-server/archive/refs/tags/${RELEASE}.tar.gz -$STD tar -xzvf ${RELEASE}.tar.gz +https://github.com/actualbudget/actual +RELEASE=$(curl -s https://api.github.com/repos/actualbudget/actual/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }') +wget -q https://github.com/actualbudget/actual-server/archive/refs/tags/v${RELEASE}.tar.gz +$STD tar -xzvf v${RELEASE}.tar.gz mv *ctual-server-* /opt/actualbudget mkdir -p /opt/actualbudget/server-files mkdir -p /opt/actualbudget-data