Skip to content

Commit 307b49f

Browse files
authored
ActualBudget: New Installation Script with new Repo (#2770)
1 parent 6a94071 commit 307b49f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

install/actualbudget-install.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@ msg_ok "Installed Node.js"
3838
msg_info "Installing Actual Budget"
3939
cd /opt
4040
RELEASE=$(curl -s https://api.github.com/repos/actualbudget/actual/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }')
41-
wget -q https://github.com/actualbudget/actual-server/archive/refs/tags/v${RELEASE}.tar.gz
41+
wget -q https://github.com/actualbudget/actual/archive/refs/tags/v${RELEASE}.tar.gz
4242
tar -xzf v${RELEASE}.tar.gz
43-
mv *ctual-server-* /opt/actualbudget
43+
mv actual-${RELEASE} /opt/actualbudget
4444

4545
mkdir -p /opt/actualbudget-data/{server-files,upload,migrate,user-files,migrations,config}
4646
chown -R root:root /opt/actualbudget-data
@@ -57,7 +57,7 @@ ACTUAL_HTTPS_KEY=/opt/actualbudget/selfhost.key
5757
ACTUAL_HTTPS_CERT=/opt/actualbudget/selfhost.crt
5858
EOF
5959
cd /opt/actualbudget
60-
$STD yarn install
60+
$STD yarn workspaces focus @actual-app/sync-server --production
6161
$STD openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout selfhost.key -out selfhost.crt <<EOF
6262
US
6363
California
@@ -82,14 +82,14 @@ User=root
8282
Group=root
8383
WorkingDirectory=/opt/actualbudget
8484
EnvironmentFile=/opt/actualbudget-data/.env
85-
ExecStart=/usr/bin/yarn start
85+
ExecStart=/usr/bin/yarn start:server
8686
Restart=always
8787
RestartSec=10
8888
8989
[Install]
9090
WantedBy=multi-user.target
9191
EOF
92-
systemctl enable -q --now actualbudget.service
92+
systemctl enable -q --now actualbudget
9393
msg_ok "Created Service"
9494

9595
motd_ssh

0 commit comments

Comments
 (0)