From d24308a40916418d97a9f929dd004634fc774959 Mon Sep 17 00:00:00 2001 From: Chris Date: Tue, 23 Sep 2025 15:21:05 -0400 Subject: [PATCH] Manage My Damn Life: use NodeJS 22 (#7861) --- ct/managemydamnlife.sh | 3 +++ install/managemydamnlife-install.sh | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/ct/managemydamnlife.sh b/ct/managemydamnlife.sh index 4648e3834..3ced2f38b 100644 --- a/ct/managemydamnlife.sh +++ b/ct/managemydamnlife.sh @@ -35,12 +35,15 @@ function update_script() { msg_info "Creating Backup" cp /opt/mmdl/.env /opt/mmdl.env + rm -rf /opt/mmdl msg_ok "Backup Created" fetch_and_deploy_gh_release "mmdl" "intri-in/manage-my-damn-life-nextjs" "tarball" + NODE_VERSION="22" setup_nodejs msg_info "Configuring ${APP}" cd /opt/mmdl + export NEXT_TELEMETRY_DISABLED=1 $STD npm install $STD npm run migrate $STD npm run build diff --git a/install/managemydamnlife-install.sh b/install/managemydamnlife-install.sh index 3c26a7631..d7135d154 100644 --- a/install/managemydamnlife-install.sh +++ b/install/managemydamnlife-install.sh @@ -17,7 +17,7 @@ msg_info "Installing dependencies" $STD apt-get install --no-install-recommends -y build-essential msg_ok "Installed dependencies" -NODE_VERSION="20" setup_nodejs +NODE_VERSION="22" setup_nodejs MYSQL_VERSION="8.0" setup_mysql msg_info "Setting up Database" @@ -48,7 +48,7 @@ sed -i -e 's|db|localhost|' \ -e "s|=PASSWORD|=$(openssl rand -base64 40 | tr -dc 'a-zA-Z0-9' | head -c40)|" \ /opt/mmdl/.env cd /opt/mmdl -export NEXT_TELEMETRY_DISABLE=1 +export NEXT_TELEMETRY_DISABLED=1 export CI="true" $STD npm install $STD npm run migrate