From 088cb6d32e791a9c24a7ef08fab5f35fab7fd8ea Mon Sep 17 00:00:00 2001 From: Josh Samuelson Date: Fri, 8 Jan 2016 16:01:50 -0800 Subject: [PATCH] Let non-root user run optional command --- app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.js b/app.js index b9954a2..dffd03b 100644 --- a/app.js +++ b/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,