Skip to content

Commit c6864c7

Browse files
authored
Update n8n.sh (#7176)
1 parent 941457b commit c6864c7

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

ct/n8n.sh

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,6 @@ function update_script() {
2727
msg_error "No ${APP} Installation Found!"
2828
exit
2929
fi
30-
if [[ "$(node -v | cut -d 'v' -f 2)" == "18."* ]]; then
31-
if ! command -v npm >/dev/null 2>&1; then
32-
echo "Installing NPM..."
33-
$STD apt-get install -y npm
34-
echo "Installed NPM..."
35-
fi
36-
fi
3730
if [ ! -f /opt/n8n.env ]; then
3831
sed -i 's|^Environment="N8N_SECURE_COOKIE=false"$|EnvironmentFile=/opt/n8n.env|' /etc/systemd/system/n8n.service
3932
HOST_IP=$(hostname -I | awk '{print $1}')
@@ -45,6 +38,7 @@ N8N_PROTOCOL=http
4538
N8N_HOST=$HOST_IP
4639
EOF
4740
fi
41+
NODE_VERSION="22" setup_nodejs
4842

4943
msg_info "Updating ${APP} LXC"
5044
$STD npm update -g n8n

0 commit comments

Comments
 (0)