@@ -38,9 +38,9 @@ msg_ok "Installed Node.js"
3838msg_info " Installing Actual Budget"
3939cd /opt
4040RELEASE=$( 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
4242tar -xzf v${RELEASE} .tar.gz
43- mv * ctual-server- * /opt/actualbudget
43+ mv actual- ${RELEASE} /opt/actualbudget
4444
4545mkdir -p /opt/actualbudget-data/{server-files,upload,migrate,user-files,migrations,config}
4646chown -R root:root /opt/actualbudget-data
@@ -57,7 +57,7 @@ ACTUAL_HTTPS_KEY=/opt/actualbudget/selfhost.key
5757ACTUAL_HTTPS_CERT=/opt/actualbudget/selfhost.crt
5858EOF
5959cd /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
6262US
6363California
@@ -82,14 +82,14 @@ User=root
8282Group=root
8383WorkingDirectory=/opt/actualbudget
8484EnvironmentFile=/opt/actualbudget-data/.env
85- ExecStart=/usr/bin/yarn start
85+ ExecStart=/usr/bin/yarn start:server
8686Restart=always
8787RestartSec=10
8888
8989[Install]
9090WantedBy=multi-user.target
9191EOF
92- systemctl enable -q --now actualbudget.service
92+ systemctl enable -q --now actualbudget
9393msg_ok " Created Service"
9494
9595motd_ssh
0 commit comments