From c6864c74bc880cd3d08b5df9f1355e94d74d7375 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Slavi=C5=A1a=20Are=C5=BEina?= <58952836+tremor021@users.noreply.github.com> Date: Mon, 25 Aug 2025 14:11:26 +0200 Subject: [PATCH] Update n8n.sh (#7176) --- ct/n8n.sh | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/ct/n8n.sh b/ct/n8n.sh index 9df8ff9be1..2ba9200b4d 100644 --- a/ct/n8n.sh +++ b/ct/n8n.sh @@ -27,13 +27,6 @@ function update_script() { msg_error "No ${APP} Installation Found!" exit fi - if [[ "$(node -v | cut -d 'v' -f 2)" == "18."* ]]; then - if ! command -v npm >/dev/null 2>&1; then - echo "Installing NPM..." - $STD apt-get install -y npm - echo "Installed NPM..." - fi - fi if [ ! -f /opt/n8n.env ]; then sed -i 's|^Environment="N8N_SECURE_COOKIE=false"$|EnvironmentFile=/opt/n8n.env|' /etc/systemd/system/n8n.service HOST_IP=$(hostname -I | awk '{print $1}') @@ -45,6 +38,7 @@ N8N_PROTOCOL=http N8N_HOST=$HOST_IP EOF fi + NODE_VERSION="22" setup_nodejs msg_info "Updating ${APP} LXC" $STD npm update -g n8n