Files
Automata/docker/images/n8n/docker-entrypoint.sh
कारतोफ्फेलस्क्रिप्ट™ e63eee28e0 fix(cli): Cache generated assets in user writable directory instead (#4275)
2022-10-06 11:14:04 +02: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