Files
n8n/docker-entrypoint.sh
2023-09-08 18:21:14 +08:00

18 lines
284 B
Bash
Executable File

#!/bin/sh
# if define NPM_PACKAGES install them
mkdir -p ~/.n8n/nodes
if [ -n "$NPM_PACKAGES" ]; then
cd ~/.n8n/nodes
npm install $NPM_PACKAGES
cd -
fi
if [ "$#" -gt 0 ]; then
# Got started with arguments
exec n8n "$@"
else
# Got started without arguments
exec n8n
fi