Browse Source

Let non-root user run optional command

pull/37/head
Josh Samuelson 9 years ago
parent
commit
088cb6d32e
  1. 2
      app.js

2
app.js

@ -112,7 +112,7 @@ io.on('connection', function(socket){
}
var term;
if (process.getuid() == 0) {
if (process.getuid() == 0 || opts.command) {
term = pty.spawn(command, [], {
name: 'xterm-256color',
cols: 80,

Loading…
Cancel
Save