From fd22b3fbdff61b06ff5586104548fd672ad8289a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E0=A4=95=E0=A4=BE=E0=A4=B0=E0=A4=A4=E0=A5=8B=E0=A4=AB?= =?UTF-8?q?=E0=A5=8D=E0=A4=AB=E0=A5=87=E0=A4=B2=E0=A4=B8=E0=A5=8D=E0=A4=95?= =?UTF-8?q?=E0=A5=8D=E0=A4=B0=E0=A4=BF=E0=A4=AA=E0=A5=8D=E0=A4=9F=E2=84=A2?= Date: Fri, 30 Sep 2022 17:24:26 +0200 Subject: [PATCH] fix(docker): allow node user to write to `n8n/dist/public` (#4245) --- docker/images/n8n/docker-entrypoint.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docker/images/n8n/docker-entrypoint.sh b/docker/images/n8n/docker-entrypoint.sh index fa81b3713..c2a42b620 100755 --- a/docker/images/n8n/docker-entrypoint.sh +++ b/docker/images/n8n/docker-entrypoint.sh @@ -6,7 +6,9 @@ if [ -d /root/.n8n ] ; then ln -s /root/.n8n /home/node/ fi -chown -R node /home/node +# node user needs to be able to write in this folder to be able to customize static assets +mkdir -p /usr/local/lib/node_modules/n8n/dist/public +chown -R node /home/node /usr/local/lib/node_modules/n8n/dist/public if [ "$#" -gt 0 ]; then # Got started with arguments