mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-26 21:19:43 -08:00
16 lines
260 B
Bash
Executable file
16 lines
260 B
Bash
Executable file
#!/bin/sh
|
|
|
|
if [ -d /root/.n8n ] ; then
|
|
chmod o+rx /root
|
|
chown -R node /root/.n8n
|
|
ln -s /root/.n8n /home/node/
|
|
fi
|
|
|
|
if [ "$#" -gt 0 ]; then
|
|
# Got started with arguments
|
|
exec gosu node "$@"
|
|
else
|
|
# Got started without arguments
|
|
exec gosu node n8n
|
|
fi
|