mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-10 22:54:05 -08:00
17 lines
315 B
Bash
17 lines
315 B
Bash
|
#!/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
|
||
|
shift
|
||
|
exec su-exec node ./packages/cli/bin/n8n "$@"
|
||
|
else
|
||
|
# Got started without arguments
|
||
|
exec su-exec node ./packages/cli/bin/n8n
|
||
|
fi
|