mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2025-09-25 11:11:02 +00:00
Manage My Damn Life: use NodeJS 22 (#7861)
This commit is contained in:
parent
584365fff1
commit
d24308a409
@ -35,12 +35,15 @@ function update_script() {
|
|||||||
|
|
||||||
msg_info "Creating Backup"
|
msg_info "Creating Backup"
|
||||||
cp /opt/mmdl/.env /opt/mmdl.env
|
cp /opt/mmdl/.env /opt/mmdl.env
|
||||||
|
rm -rf /opt/mmdl
|
||||||
msg_ok "Backup Created"
|
msg_ok "Backup Created"
|
||||||
|
|
||||||
fetch_and_deploy_gh_release "mmdl" "intri-in/manage-my-damn-life-nextjs" "tarball"
|
fetch_and_deploy_gh_release "mmdl" "intri-in/manage-my-damn-life-nextjs" "tarball"
|
||||||
|
NODE_VERSION="22" setup_nodejs
|
||||||
|
|
||||||
msg_info "Configuring ${APP}"
|
msg_info "Configuring ${APP}"
|
||||||
cd /opt/mmdl
|
cd /opt/mmdl
|
||||||
|
export NEXT_TELEMETRY_DISABLED=1
|
||||||
$STD npm install
|
$STD npm install
|
||||||
$STD npm run migrate
|
$STD npm run migrate
|
||||||
$STD npm run build
|
$STD npm run build
|
||||||
|
@ -17,7 +17,7 @@ msg_info "Installing dependencies"
|
|||||||
$STD apt-get install --no-install-recommends -y build-essential
|
$STD apt-get install --no-install-recommends -y build-essential
|
||||||
msg_ok "Installed dependencies"
|
msg_ok "Installed dependencies"
|
||||||
|
|
||||||
NODE_VERSION="20" setup_nodejs
|
NODE_VERSION="22" setup_nodejs
|
||||||
MYSQL_VERSION="8.0" setup_mysql
|
MYSQL_VERSION="8.0" setup_mysql
|
||||||
|
|
||||||
msg_info "Setting up Database"
|
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)|" \
|
-e "s|=PASSWORD|=$(openssl rand -base64 40 | tr -dc 'a-zA-Z0-9' | head -c40)|" \
|
||||||
/opt/mmdl/.env
|
/opt/mmdl/.env
|
||||||
cd /opt/mmdl
|
cd /opt/mmdl
|
||||||
export NEXT_TELEMETRY_DISABLE=1
|
export NEXT_TELEMETRY_DISABLED=1
|
||||||
export CI="true"
|
export CI="true"
|
||||||
$STD npm install
|
$STD npm install
|
||||||
$STD npm run migrate
|
$STD npm run migrate
|
||||||
|
Loading…
x
Reference in New Issue
Block a user