Fix Actualbudget Update (#1376)

This commit is contained in:
Michel Roegl-Brunner 2025-01-10 09:18:04 +01:00 committed by GitHub
parent 749e487032
commit 77bac7a919
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 0 deletions

View File

@ -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 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 /opt/actualbudget /opt/actualbudget_bak
mv actualbudget-actual-server-*/* /opt/actualbudget/ 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 cd /opt/actualbudget
yarn install &>/dev/null yarn install &>/dev/null
systemctl start actualbudget systemctl start actualbudget

View File

@ -20,6 +20,7 @@ $STD apt-get install -y \
mc \ mc \
gpg \ gpg \
git \ git \
jq \
build-essential build-essential
msg_ok "Installed Dependencies" 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 wget -q https://codeload.github.com/actualbudget/actual-server/legacy.tar.gz/refs/tags/${RELEASE} -O - | tar -xz
mv actualbudget-actual-server-* /opt/actualbudget mv actualbudget-actual-server-* /opt/actualbudget
mkdir -p /opt/actualbudget/server-files mkdir -p /opt/actualbudget/server-files
mkdir -p /opt/actualbudget-data
chown -R root:root /opt/actualbudget/server-files chown -R root:root /opt/actualbudget/server-files
chmod 755 /opt/actualbudget/server-files chmod 755 /opt/actualbudget/server-files
cat <<EOF > /opt/actualbudget/.env cat <<EOF > /opt/actualbudget/.env
ACTUAL_UPLOAD_DIR=/opt/actualbudget/server-files ACTUAL_UPLOAD_DIR=/opt/actualbudget/server-files
ACTUAL_DATA_DIR=/opt/actualbudget-data
ACTUAL_SERVER_FILES_DIR=/opt/actualbudget/server-files
PORT=5006 PORT=5006
EOF EOF
cd /opt/actualbudget cd /opt/actualbudget