Remove sudo from mpg321 call

We'll just run the parent process as root.
This commit is contained in:
Annika Backstrom 2016-12-22 16:20:01 +00:00
parent 1f27a94c35
commit 0988d59529
1 changed files with 1 additions and 1 deletions

View File

@ -1,7 +1,7 @@
const glob = require('glob');
const spawn = require('child_process').spawn;
const tag_reader = spawn('/home/annika/rfid/run-tag-reader');
const player = spawn('/usr/bin/sudo', ['-n', '/usr/bin/mpg321', '-R', '-']);
const player = spawn('/usr/bin/mpg321', ['-R', '-']);
tag_reader.on('error', function(err) {
console.log(`[tag_reader:error] ${err}`);