mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -08:00
🐳 Fix docker images with custom commands #309
This commit is contained in:
parent
bd1a79f69a
commit
09309c6602
|
@ -6,5 +6,10 @@ if [ -d /root/.n8n ] ; then
|
||||||
ln -s /root/.n8n /home/node/
|
ln -s /root/.n8n /home/node/
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$#" -gt 0 ]; then shift; fi
|
if [ "$#" -gt 0 ]; then
|
||||||
exec gosu node n8n $@
|
# Got started with arguments
|
||||||
|
exec gosu node "$@"
|
||||||
|
else
|
||||||
|
# Got started without arguments
|
||||||
|
exec gosu node n8n
|
||||||
|
fi
|
||||||
|
|
|
@ -6,5 +6,10 @@ if [ -d /root/.n8n ] ; then
|
||||||
ln -s /root/.n8n /home/node/
|
ln -s /root/.n8n /home/node/
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$#" -gt 0 ]; then shift; fi
|
if [ "$#" -gt 0 ]; then
|
||||||
exec su-exec node n8n $@
|
# Got started with arguments
|
||||||
|
exec su-exec node "$@"
|
||||||
|
else
|
||||||
|
# Got started without arguments
|
||||||
|
exec su-exec node n8n
|
||||||
|
fi
|
||||||
|
|
Loading…
Reference in a new issue