🐳 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,8 +8,15 @@ fi
if [ "$#" -gt 0 ]; then if [ "$#" -gt 0 ]; then
# Got started with arguments # Got started with arguments
COMMAND=$1;
if [[ "$COMMAND" == "n8n" ]]; then
shift shift
exec su-exec node ./packages/cli/bin/n8n "$@" exec su-exec node ./packages/cli/bin/n8n "$@"
else
exec su-exec node "$@"
fi
else else
# Got started without arguments # Got started without arguments
exec su-exec node ./packages/cli/bin/n8n exec su-exec node ./packages/cli/bin/n8n