Hi, I'm trying to deploy Node-Red through provisioning in Vagrant. Since provisioning scripts run as root (or as user vagrant if you tick the option 'not-priviliged') I wanted to use the --nodered-user option available in the debian install script, see:
here: https://discourse.nodered.org/t/specify-user-in-the-update-nodejs-and-nodered-script/
and here: https://raw.githubusercontent.com/node-red/linux-installers/master/deb/update-nodejs-and-nodered
It works all fine for installation, but node-red fails to launch due to a permissions issue when it tries to copy the settings file to the /home/my_user/.node-red folder. Turns out that the script creates the folder with root ownership.
This seems like a bit of an oversight? I mean if you want to install as a different user, wouldn't the script then also set the ownership of the folders correctly? I fixed it manually by simply doing "chown my_user:my_user /home/my_user/.node-red", but I thought I'd flag it here as perhaps a suggestion for improvement?
Thanks
Koen