mirror of
https://github.com/community-scripts/ProxmoxVE
synced 2025-01-26 18:46:18 +00:00
Install/update ActualBudget based on releases, not latest main
This commit is contained in:
parent
d3d6ec8b20
commit
693ae94e7d
@ -34,11 +34,13 @@ function update_script() {
|
|||||||
fi
|
fi
|
||||||
msg_info "Updating ${APP}"
|
msg_info "Updating ${APP}"
|
||||||
systemctl stop actualbudget.service
|
systemctl stop actualbudget.service
|
||||||
|
RELEASE=$(curl -s https://api.github.com/repos/actualbudget/actual-server/tags | jq '.[0].name')
|
||||||
cd /opt/actualbudget
|
cd /opt/actualbudget
|
||||||
git pull &>/dev/null
|
git pull &>/dev/null
|
||||||
|
git checkout "$RELEASE"
|
||||||
yarn install &>/dev/null
|
yarn install &>/dev/null
|
||||||
systemctl start actualbudget.service
|
systemctl start actualbudget.service
|
||||||
msg_ok "Successfully Updated ${APP}"
|
msg_ok "Successfully Updated ${APP} to ${RELEASE}"
|
||||||
exit
|
exit
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -35,7 +35,8 @@ $STD apt-get install -y nodejs
|
|||||||
$STD npm install --global yarn
|
$STD npm install --global yarn
|
||||||
msg_ok "Installed Node.js"
|
msg_ok "Installed Node.js"
|
||||||
|
|
||||||
msg_info "Installing Actual Budget"
|
RELEASE=$(curl -s https://api.github.com/repos/actualbudget/actual-server/tags | jq '.[0].name')
|
||||||
|
msg_info "Installing Actual Budget $RELEASE"
|
||||||
$STD git clone https://github.com/actualbudget/actual-server.git /opt/actualbudget
|
$STD git clone https://github.com/actualbudget/actual-server.git /opt/actualbudget
|
||||||
mkdir -p /opt/actualbudget/server-files
|
mkdir -p /opt/actualbudget/server-files
|
||||||
chown -R root:root /opt/actualbudget/server-files
|
chown -R root:root /opt/actualbudget/server-files
|
||||||
@ -45,6 +46,7 @@ ACTUAL_UPLOAD_DIR=/opt/actualbudget/server-files
|
|||||||
PORT=5006
|
PORT=5006
|
||||||
EOF
|
EOF
|
||||||
cd /opt/actualbudget
|
cd /opt/actualbudget
|
||||||
|
$STD git checkout "$RELEASE"
|
||||||
$STD yarn install
|
$STD yarn install
|
||||||
msg_ok "Installed Actual Budget"
|
msg_ok "Installed Actual Budget"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user