From 05d11bf66dd55193f5284553cfd271c6d83a9ec8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Slavi=C5=A1a=20Are=C5=BEina?= <58952836+tremor021@users.noreply.github.com> Date: Tue, 29 Jul 2025 21:52:15 +0200 Subject: [PATCH] n8n: Fix service file (#6362) * Update n8n-install.sh * Update * Update * Update * Update --- ct/n8n.sh | 2 +- install/n8n-install.sh | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/ct/n8n.sh b/ct/n8n.sh index c23b4a79c..9df8ff9be 100644 --- a/ct/n8n.sh +++ b/ct/n8n.sh @@ -35,7 +35,7 @@ function update_script() { 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 + sed -i 's|^Environment="N8N_SECURE_COOKIE=false"$|EnvironmentFile=/opt/n8n.env|' /etc/systemd/system/n8n.service HOST_IP=$(hostname -I | awk '{print $1}') mkdir -p /opt cat </opt/n8n.env diff --git a/install/n8n-install.sh b/install/n8n-install.sh index 3d83f1928..b1c7606ea 100644 --- a/install/n8n-install.sh +++ b/install/n8n-install.sh @@ -14,8 +14,7 @@ network_check update_os msg_info "Installing Dependencies" -$STD apt-get install -y \ - ca-certificates +$STD apt-get install -y ca-certificates msg_ok "Installed Dependencies" NODE_VERSION="22" setup_nodejs @@ -41,12 +40,13 @@ Description=n8n [Service] Type=simple -EnvironmentFile="/opt/n8n.env" +EnvironmentFile=/opt/n8n.env ExecStart=n8n start + [Install] WantedBy=multi-user.target EOF -$STD systemctl enable --now n8n +systemctl enable -q --now n8n msg_ok "Created Service" motd_ssh