From c4adc1c99c282ec6fabd6da276646f620b05b47e Mon Sep 17 00:00:00 2001 From: MickLesk Date: Fri, 8 May 2026 21:48:50 +0200 Subject: [PATCH] fix(flowiseai): ensure setup_nodejs is called before updating FlowiseAI --- ct/flowiseai.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ct/flowiseai.sh b/ct/flowiseai.sh index 9b79a8a0d..59e068f1e 100644 --- a/ct/flowiseai.sh +++ b/ct/flowiseai.sh @@ -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