mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-06-22 07:21:19 +02:00
fix(ct): ensure corepack is enabled before yarn/pnpm updates
Run setup_nodejs with corepack in update scripts that use bare package manager commands after corepack prepare. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -30,6 +30,8 @@ function update_script() {
|
||||
exit
|
||||
fi
|
||||
|
||||
NODE_VERSION="24" NODE_MODULE="corepack" setup_nodejs
|
||||
|
||||
if check_for_gh_release "bookorbit" "bookorbit/bookorbit"; then
|
||||
msg_info "Stopping Service"
|
||||
systemctl stop bookorbit
|
||||
|
||||
@@ -30,6 +30,8 @@ function update_script() {
|
||||
exit
|
||||
fi
|
||||
|
||||
NODE_VERSION="24" NODE_MODULE="corepack" setup_nodejs
|
||||
|
||||
if check_for_gh_release "databasus" "databasus/databasus"; then
|
||||
msg_info "Stopping Databasus"
|
||||
$STD systemctl stop databasus
|
||||
|
||||
@@ -30,6 +30,8 @@ function update_script() {
|
||||
exit
|
||||
fi
|
||||
|
||||
NODE_VERSION="24" NODE_MODULE="corepack" setup_nodejs
|
||||
|
||||
if check_for_gh_release "feishin" "jeffvli/feishin"; then
|
||||
create_backup /opt/feishin/.env
|
||||
|
||||
|
||||
@@ -30,6 +30,8 @@ function update_script() {
|
||||
exit 1
|
||||
fi
|
||||
|
||||
NODE_VERSION="24" NODE_MODULE="corepack" setup_nodejs
|
||||
|
||||
if check_for_gh_release "plane" "makeplane/plane"; then
|
||||
msg_info "Stopping Services"
|
||||
systemctl stop plane-api plane-worker plane-beat plane-live plane-space
|
||||
|
||||
@@ -31,6 +31,8 @@ function update_script() {
|
||||
exit
|
||||
fi
|
||||
|
||||
NODE_VERSION="24" NODE_MODULE="corepack" setup_nodejs
|
||||
|
||||
if check_for_gh_release "twenty" "twentyhq/twenty"; then
|
||||
msg_info "Stopping Services"
|
||||
systemctl stop twenty-worker twenty-server
|
||||
|
||||
Reference in New Issue
Block a user