n8n: Fix service file (#6362)

* Update n8n-install.sh

* Update

* Update

* Update

* Update
This commit is contained in:
Slaviša Arežina
2025-07-29 21:52:15 +02:00
committed by GitHub
parent c7aac080ac
commit 05d11bf66d
2 changed files with 5 additions and 5 deletions

View File

@@ -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 <<EOF >/opt/n8n.env