diff --git a/ct/actualbudget.sh b/ct/actualbudget.sh index a573ae973..6efa56dcc 100644 --- a/ct/actualbudget.sh +++ b/ct/actualbudget.sh @@ -11,7 +11,7 @@ var_cpu="${var_cpu:-2}" var_ram="${var_ram:-2048}" var_disk="${var_disk:-4}" var_os="${var_os:-debian}" -var_version="${var_version:-12}" +var_version="${var_version:-13}" var_unprivileged="${var_unprivileged:-1}" header_info "$APP" @@ -28,8 +28,7 @@ function update_script() { msg_error "No ${APP} Installation Found!" exit fi - NODE_VERSION="22" - setup_nodejs + NODE_VERSION="22" setup_nodejs RELEASE=$(curl -fsSL https://api.github.com/repos/actualbudget/actual/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }') if [[ -f /opt/actualbudget-data/config.json ]]; then if [[ ! -f /opt/actualbudget_version.txt ]] || [[ "${RELEASE}" != "$(cat /opt/actualbudget_version.txt)" ]]; then diff --git a/frontend/public/json/actualbudget.json b/frontend/public/json/actualbudget.json index 77b590183..10a1c1955 100644 --- a/frontend/public/json/actualbudget.json +++ b/frontend/public/json/actualbudget.json @@ -23,7 +23,7 @@ "ram": 2048, "hdd": 4, "os": "debian", - "version": "12" + "version": "13" } } ], diff --git a/install/actualbudget-install.sh b/install/actualbudget-install.sh index b9d1d8fa9..356a4113a 100644 --- a/install/actualbudget-install.sh +++ b/install/actualbudget-install.sh @@ -14,7 +14,7 @@ network_check update_os msg_info "Installing Dependencies" -$STD apt-get install -y \ +$STD apt install -y \ make \ g++ msg_ok "Installed Dependencies" @@ -22,8 +22,7 @@ msg_ok "Installed Dependencies" msg_info "Installing Actual Budget" cd /opt RELEASE=$(curl -fsSL https://api.github.com/repos/actualbudget/actual/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }') -NODE_VERSION="22" -setup_nodejs +NODE_VERSION="22" setup_nodejs mkdir -p /opt/actualbudget-data/{server-files,upload,migrate,user-files,migrations,config} chown -R root:root /opt/actualbudget-data chmod -R 755 /opt/actualbudget-data @@ -50,7 +49,7 @@ cat </opt/actualbudget-data/config.json EOF mkdir -p /opt/actualbudget -cd /opt/actualbudget +cd /opt/actualbudget || exit $STD npm install --location=global @actual-app/sync-server $STD openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout selfhost.key -out selfhost.crt <