n8n/docker/images/n8n/docker-entrypoint.sh
2020-12-19 23:04:20 +01:00

18 lines
292 B
Bash
Executable file

#!/bin/sh
if [ -d /root/.n8n ] ; then
chmod o+rx /root
chown -R node /root/.n8n
ln -s /root/.n8n /home/node/
fi
chown -R node /home/node
if [ "$#" -gt 0 ]; then
# Got started with arguments
exec su-exec node "$@"
else
# Got started without arguments
exec su-exec node n8n
fi