I would like to make a button in the dashboard to execute a script. This script updates Node-Red like this: bash <(curl -sL https://raw.githubusercontent.com/node-red/linux-installers/master/deb/update-nodejs-and-nodered)
Will that work, doesn't it need to be run in terminal so that you can enter the password when required. Or are your systems setup so as not to need a password for sudo?
Even then I am not certain it will work without a terminal session.
the goal is to display on the Dashboard if a new version of NR is available online :
and if there is one, be able to update always from the Dashboard by clicking on a button which executes the update command or script.
Indeed, we do not see the errors but it avoids connecting to ssh and typing in the terminal to the update command.