🐳 Improve docker script for custom image

This commit is contained in:
Jan Oberhauser 2020-05-27 13:57:39 +02:00
parent d201cc3dd7
commit ff62470c73

View file

@ -8,9 +8,16 @@ fi
if [ "$#" -gt 0 ]; then
# Got started with arguments
shift
exec su-exec node ./packages/cli/bin/n8n "$@"
COMMAND=$1;
if [[ "$COMMAND" == "n8n" ]]; then
shift
exec su-exec node ./packages/cli/bin/n8n "$@"
else
exec su-exec node "$@"
fi
else
# Got started without arguments
exec su-exec node ./packages/cli/bin/n8n
# Got started without arguments
exec su-exec node ./packages/cli/bin/n8n
fi