From 77bac7a9195b00980ef0ebc5a35a618df3be4c61 Mon Sep 17 00:00:00 2001 From: Michel Roegl-Brunner <73236783+michelroegl-brunner@users.noreply.github.com> Date: Fri, 10 Jan 2025 09:18:04 +0100 Subject: [PATCH] Fix Actualbudget Update (#1376) --- ct/actualbudget.sh | 2 ++ install/actualbudget-install.sh | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/ct/actualbudget.sh b/ct/actualbudget.sh index 75dcdb19..8741053c 100644 --- a/ct/actualbudget.sh +++ b/ct/actualbudget.sh @@ -46,6 +46,8 @@ function update_script() { wget -q https://codeload.github.com/actualbudget/actual-server/legacy.tar.gz/refs/tags/${RELEASE} -O - | tar -xz mv /opt/actualbudget /opt/actualbudget_bak mv actualbudget-actual-server-*/* /opt/actualbudget/ + mv /opt/actualbudget_bak/.env /opt/actualbudget + mv /opt/actualbudget_bak/server-files /opt/actualbudget/server-files cd /opt/actualbudget yarn install &>/dev/null systemctl start actualbudget diff --git a/install/actualbudget-install.sh b/install/actualbudget-install.sh index 3a62fb5e..e5400117 100644 --- a/install/actualbudget-install.sh +++ b/install/actualbudget-install.sh @@ -20,6 +20,7 @@ $STD apt-get install -y \ mc \ gpg \ git \ + jq \ build-essential msg_ok "Installed Dependencies" @@ -40,10 +41,13 @@ msg_info "Installing Actual Budget $RELEASE" wget -q https://codeload.github.com/actualbudget/actual-server/legacy.tar.gz/refs/tags/${RELEASE} -O - | tar -xz mv actualbudget-actual-server-* /opt/actualbudget mkdir -p /opt/actualbudget/server-files +mkdir -p /opt/actualbudget-data chown -R root:root /opt/actualbudget/server-files chmod 755 /opt/actualbudget/server-files cat < /opt/actualbudget/.env ACTUAL_UPLOAD_DIR=/opt/actualbudget/server-files +ACTUAL_DATA_DIR=/opt/actualbudget-data +ACTUAL_SERVER_FILES_DIR=/opt/actualbudget/server-files PORT=5006 EOF cd /opt/actualbudget