Skip to content

Commit 5382fa1

Browse files
authored
Update Monica and Outline to use Node.js 22 (#7833)
1 parent 6fa1938 commit 5382fa1

File tree

4 files changed

+8
-3
lines changed

4 files changed

+8
-3
lines changed

ct/monica.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ function update_script() {
2727
msg_error "No ${APP} Installation Found!"
2828
exit
2929
fi
30+
31+
NODE_VERSION="22" NODE_MODULE="yarn@latest" setup_nodejs
32+
3033
if check_for_gh_release "monica" "monicahq/monica"; then
3134
msg_info "Stopping Service"
3235
systemctl stop apache2

ct/outline.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ function update_script() {
2828
exit
2929
fi
3030

31+
NODE_VERSION="22" NODE_MODULE="yarn@latest" setup_nodejs
32+
3133
if check_for_gh_release "outline" "outline/outline"; then
3234
msg_info "Stopping Services"
3335
systemctl stop outline
@@ -37,7 +39,7 @@ function update_script() {
3739
cp /opt/outline/.env /opt
3840
msg_ok "Backup created"
3941

40-
fetch_and_deploy_gh_release "outline" "outline/outline" "tarball"
42+
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "outline" "outline/outline" "tarball"
4143

4244
msg_info "Updating ${APP}"
4345
cd /opt/outline

install/monica-install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ update_os
1616
PHP_VERSION="8.2" PHP_APACHE="YES" PHP_MODULE="dom,gmp,iconv,mysqli,pdo-mysql,redis,tokenizer" setup_php
1717
setup_composer
1818
setup_mariadb
19-
NODE_VERSION="20" NODE_MODULE="yarn@latest" setup_nodejs
19+
NODE_VERSION="22" NODE_MODULE="yarn@latest" setup_nodejs
2020

2121
msg_info "Setting up MariaDB"
2222
DB_NAME=monica

install/outline-install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ $STD apt-get install -y \
2020
redis
2121
msg_ok "Installed Dependencies"
2222

23-
NODE_VERSION="20" NODE_MODULE="yarn@latest" setup_nodejs
23+
NODE_VERSION="22" NODE_MODULE="yarn@latest" setup_nodejs
2424
PG_VERSION="16" setup_postgresql
2525

2626
msg_info "Set up PostgreSQL Database"

0 commit comments

Comments
 (0)