Skip to content

Commit 05d11bf

Browse files
authored
n8n: Fix service file (#6362)
* Update n8n-install.sh * Update * Update * Update * Update
1 parent c7aac08 commit 05d11bf

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

ct/n8n.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ function update_script() {
3535
fi
3636
fi
3737
if [ ! -f /opt/n8n.env ]; then
38-
sed -i 's|^Environment="N8N_SECURE_COOKIE=false"$|EnvironmentFile="/opt/n8n.env"|' /etc/systemd/system/n8n.service
38+
sed -i 's|^Environment="N8N_SECURE_COOKIE=false"$|EnvironmentFile=/opt/n8n.env|' /etc/systemd/system/n8n.service
3939
HOST_IP=$(hostname -I | awk '{print $1}')
4040
mkdir -p /opt
4141
cat <<EOF >/opt/n8n.env

install/n8n-install.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@ network_check
1414
update_os
1515

1616
msg_info "Installing Dependencies"
17-
$STD apt-get install -y \
18-
ca-certificates
17+
$STD apt-get install -y ca-certificates
1918
msg_ok "Installed Dependencies"
2019

2120
NODE_VERSION="22" setup_nodejs
@@ -41,12 +40,13 @@ Description=n8n
4140
4241
[Service]
4342
Type=simple
44-
EnvironmentFile="/opt/n8n.env"
43+
EnvironmentFile=/opt/n8n.env
4544
ExecStart=n8n start
45+
4646
[Install]
4747
WantedBy=multi-user.target
4848
EOF
49-
$STD systemctl enable --now n8n
49+
systemctl enable -q --now n8n
5050
msg_ok "Created Service"
5151

5252
motd_ssh

0 commit comments

Comments
 (0)