mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-05-30 20:44:43 +00:00
fix(flowiseai): ensure setup_nodejs is called before updating FlowiseAI
This commit is contained in:
+3
-1
@@ -27,9 +27,11 @@ function update_script() {
|
||||
msg_error "No ${APP} Installation Found!"
|
||||
exit
|
||||
fi
|
||||
|
||||
NODE_VERSION="20" NODE_MODULE="pnpm" setup_nodejs
|
||||
|
||||
msg_info "Updating FlowiseAI (this may take some time)"
|
||||
systemctl stop flowise
|
||||
NODE_VERSION="20" NODE_MODULE="pnpm" setup_nodejs
|
||||
$STD pnpm add -g flowise
|
||||
if grep -q 'ExecStart=npx flowise start' /etc/systemd/system/flowise.service; then
|
||||
sed -i 's|ExecStart=npx flowise start|ExecStart=flowise start|' /etc/systemd/system/flowise.service
|
||||
|
||||
Reference in New Issue
Block a user