fix(flowiseai): ensure setup_nodejs is called before updating FlowiseAI

This commit is contained in:
MickLesk
2026-05-08 21:48:50 +02:00
parent 52b7266db2
commit c4adc1c99c
+3 -1
View File
@@ -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