Skip to content

Commit 8f8eb7a

Browse files
authored
ActualBudget: bump to debian 13 (#8124)
1 parent 942ff02 commit 8f8eb7a

File tree

3 files changed

+9
-10
lines changed

3 files changed

+9
-10
lines changed

ct/actualbudget.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ var_cpu="${var_cpu:-2}"
1111
var_ram="${var_ram:-2048}"
1212
var_disk="${var_disk:-4}"
1313
var_os="${var_os:-debian}"
14-
var_version="${var_version:-12}"
14+
var_version="${var_version:-13}"
1515
var_unprivileged="${var_unprivileged:-1}"
1616

1717
header_info "$APP"
@@ -28,8 +28,7 @@ function update_script() {
2828
msg_error "No ${APP} Installation Found!"
2929
exit
3030
fi
31-
NODE_VERSION="22"
32-
setup_nodejs
31+
NODE_VERSION="22" setup_nodejs
3332
RELEASE=$(curl -fsSL https://api.github.com/repos/actualbudget/actual/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }')
3433
if [[ -f /opt/actualbudget-data/config.json ]]; then
3534
if [[ ! -f /opt/actualbudget_version.txt ]] || [[ "${RELEASE}" != "$(cat /opt/actualbudget_version.txt)" ]]; then

frontend/public/json/actualbudget.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"ram": 2048,
2424
"hdd": 4,
2525
"os": "debian",
26-
"version": "12"
26+
"version": "13"
2727
}
2828
}
2929
],

install/actualbudget-install.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,15 @@ network_check
1414
update_os
1515

1616
msg_info "Installing Dependencies"
17-
$STD apt-get install -y \
17+
$STD apt install -y \
1818
make \
1919
g++
2020
msg_ok "Installed Dependencies"
2121

2222
msg_info "Installing Actual Budget"
2323
cd /opt
2424
RELEASE=$(curl -fsSL https://api.github.com/repos/actualbudget/actual/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }')
25-
NODE_VERSION="22"
26-
setup_nodejs
25+
NODE_VERSION="22" setup_nodejs
2726
mkdir -p /opt/actualbudget-data/{server-files,upload,migrate,user-files,migrations,config}
2827
chown -R root:root /opt/actualbudget-data
2928
chmod -R 755 /opt/actualbudget-data
@@ -50,7 +49,7 @@ cat <<EOF >/opt/actualbudget-data/config.json
5049
EOF
5150

5251
mkdir -p /opt/actualbudget
53-
cd /opt/actualbudget
52+
cd /opt/actualbudget || exit
5453
$STD npm install --location=global @actual-app/sync-server
5554
$STD openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout selfhost.key -out selfhost.crt <<EOF
5655
US
@@ -92,6 +91,7 @@ motd_ssh
9291
customize
9392

9493
msg_info "Cleaning up"
95-
$STD apt-get -y autoremove
96-
$STD apt-get -y autoclean
94+
$STD apt -y autoremove
95+
$STD apt -y autoclean
96+
$STD apt -y clean
9797
msg_ok "Cleaned"

0 commit comments

Comments
 (0)