mirror of
https://github.com/community-scripts/ProxmoxVE
synced 2025-01-10 19:05:09 +00:00
Fix Actualbudget Update (#1376)
This commit is contained in:
parent
749e487032
commit
77bac7a919
@ -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
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user