n8n/docker/images/n8n-custom/docker-entrypoint.sh

17 lines
284 B
Bash
Raw Normal View History

#!/bin/sh
if [ "$#" -gt 0 ]; then
# Got started with arguments
COMMAND=$1;
if [[ "$COMMAND" == "n8n" ]]; then
shift
(cd packages/cli; exec node ./bin/n8n "$@")
else
exec node "$@"
fi
else
# Got started without arguments
cd packages/cli; exec node ./bin/n8n
fi