mirror of
https://github.com/n8n-io/n8n.git
synced 2025-01-11 21:07:28 -08:00
🐳 Improve docker script for custom image
This commit is contained in:
parent
d201cc3dd7
commit
ff62470c73
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue