fix(cli): Cache generated assets in user writable directory instead (#4275)

This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™
2022-10-06 11:14:04 +02:00
committed by GitHub
parent 9089dbe942
commit e63eee28e0
2 changed files with 2 additions and 6 deletions

View File

@@ -6,9 +6,7 @@ if [ -d /root/.n8n ] ; then
ln -s /root/.n8n /home/node/
fi
# 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
chown -R node /home/node
if [ "$#" -gt 0 ]; then
# Got started with arguments