mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 10:31:15 +00:00
🐳 Improve docker script for custom image
This commit is contained in:
@@ -8,9 +8,16 @@ fi
|
|||||||
|
|
||||||
if [ "$#" -gt 0 ]; then
|
if [ "$#" -gt 0 ]; then
|
||||||
# Got started with arguments
|
# Got started with arguments
|
||||||
shift
|
COMMAND=$1;
|
||||||
exec su-exec node ./packages/cli/bin/n8n "$@"
|
|
||||||
|
if [[ "$COMMAND" == "n8n" ]]; then
|
||||||
|
shift
|
||||||
|
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
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user