-
-
Notifications
You must be signed in to change notification settings - Fork 501
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DietPi-Software | Node-RED: Switch to a local service user install #4124
Conversation
+ DietPi-Software | Node-RED: Switch to a local service user install right into /mnt/dietpi_userdata/node-red/node_modules. This allows Node-RED to control core modules as well. Additionally add a console alias for the admin CLI which invokes the service user instance via sudo. Also do not install Python 2 anymore, everything should now work with Python 3.
@StephanStS It makes much more sense hence to install the modules as "nodered" user right from the start. So they are no globally available Node modules and commands, but everything is in that service users home directory. Also self updates should be possible then, but since there is no update available, I cannot see it currently. And do you know a reason to keep installing Python 2 together with Node-RED? And it seems the docs require a fix: https://dietpi.com/docs/software/hardware_projects/#node-red
EDIT: Ah found it: |
@MichaIng: I already started to change it also. :-) |
I'll merge it now, as I see no issues with it, all web UI elements work perfectly fine. |
Status: Review
Commit list/description: