mirror of
https://github.com/community-scripts/ProxmoxVE
synced 2025-01-10 10:55:10 +00:00
Fix Actualbudget Update
This commit is contained in:
parent
749e487032
commit
0d077cc01f
@ -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
|
||||
|
@ -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 <<EOF > /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
|
||||
|
Loading…
Reference in New Issue
Block a user