You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The deploy of mqtt is made as root but it should be as deploy user.
The code that should make this possible is the following one, but it does not work.
app.on('ready', function() {
debug('MQTT Server listening on port', process.env.NODE_PORT)
if (process.getuid() === 0)
require('fs').stat(__filename, function(err, stats) {
if (err) return console.log(err)
process.setuid(stats.uid);
});
});
The text was updated successfully, but these errors were encountered:
The deploy of mqtt is made as root but it should be as deploy user.
The code that should make this possible is the following one, but it does not work.
The text was updated successfully, but these errors were encountered: