mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-30 15:07:28 -08:00
26 lines
440 B
Bash
Executable file
26 lines
440 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
|
|
|
|
chown -R node /home/node
|
|
|
|
if [ "$#" -gt 0 ]; then
|
|
# Got started with arguments
|
|
COMMAND=$1;
|
|
|
|
if [[ "$COMMAND" == "n8n" ]]; then
|
|
shift
|
|
(cd packages/cli; exec su-exec node ./bin/n8n "$@")
|
|
else
|
|
exec su-exec node "$@"
|
|
fi
|
|
|
|
else
|
|
# Got started without arguments
|
|
exec su-exec node ./packages/cli/bin/n8n
|
|
fi
|