File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change @@ -14,8 +14,7 @@ network_check
1414update_os
1515
1616msg_info " Installing Dependencies"
17- $STD apt-get install -y \
18- ca-certificates
17+ $STD apt-get install -y ca-certificates
1918msg_ok " Installed Dependencies"
2019
2120NODE_VERSION=" 22" setup_nodejs
@@ -41,12 +40,13 @@ Description=n8n
4140
4241[Service]
4342Type=simple
44- EnvironmentFile=" /opt/n8n.env"
43+ EnvironmentFile=/opt/n8n.env
4544ExecStart=n8n start
45+
4646[Install]
4747WantedBy=multi-user.target
4848EOF
49- $STD systemctl enable --now n8n
49+ systemctl enable -q --now n8n
5050msg_ok " Created Service"
5151
5252motd_ssh
You can’t perform that action at this time.
0 commit comments