Tidied up Install script for v5

The current install script has done a fair few rounds, so I have had a go at tidying it up somewhat - to get rid of some of the old cruft that had accumulated along the way - and to make it more ready for v5 (ie node 22 onwards) - default to 24 . etc

As it has had a fair few changes I "think" I have tested most of the pathways and platforms - but of course you lot are pretty darn good at finding the flaws... so I'm not going to just replace the old one just yet...

The new one can be found at https://raw.githubusercontent.com/node-red/linux-installers/refs/heads/master/deb/install-update-nodered
or

bash <(curl -sL https://raw.githubusercontent.com/node-red/linux-installers/refs/heads/master/deb/install-update-nodered)

as usual you can add --help for more info on options etc...
Default will still install Node-RED 4.x - but you can try the beta with

bash <(curl -sL https://raw.githubusercontent.com/node-red/linux-installers/refs/heads/master/deb/install-update-nodered) --nodered-version="next"

I would love to get feedback on any bugs, hangs, weird behaviour - but please don't try this on your golden device... just in case :slight_smile:

Thanks in advance

The script did not ask me if I wanted to install Pi specific nodes (I never do since I don't use the GPIO pins on my Pies) but it installed them anyway.

It did not give me the usual advice on securing Node-Red, nor comment about my unencrypted flows_cred.json and non-standard settings.js.

Just before running it I edited the systemd service script but did not run daemon-reload.
The warning about this was included in nodered-install.log but not output to the terminal.

Similarly, the warning about a customised systemd script was only in the logfile (not sure if this is a problem or not)

Correct, it no longer asks about pi nodes.
If it detects it's already running as a service it doesn't do the extra advice piece etc and settings and just restarts the service for less downtime.

No problems with an RPI5, but on RPI4 the node.js version was too low, so couldn't start.
Removed node.js and ran install again, now up and running on both RPI's.
I don't use PI nodes either.

running it to (re)install beta with --node24 (upgrade from v22) option as well and it appear to have frozen. I ctrl-c and started again - frozen again

1st time I ran it - it asked for sudo password - don't remember having to do that in the past

ctrl-c again and just ran basic script without any extras and it appeared to work

[edit]
re-ran with beta command and all OK

[edit2] for ref - this was the one that failed
image

Thanks. Will investigate