node-red / linux-installers

Node-RED install scripts for various flavours of Linux
Apache License 2.0
94 stars 63 forks source link

script does not check or abort if user is not in sudoer group #45

Closed bs-eng closed 6 months ago

bs-eng commented 7 months ago

Hi! Running the script on a debian 12 system (sudo is installed) the script does not abort if the user (under which the script is run) is not in the sudoers group. As it is very unintuitive to abort from the password prompt and being in sudoers group is a hard requirement, this should be checked first.

Expected behaviour: abort with error

The used command was: bash <(curl -sL https://raw.githubusercontent.com/node-red/linux-installers/master/deb/update-nodejs-and-nodered) --nodered-user=xxxxxx --skip-pi --node20

Cheers