CC-3794: Liquidsoap isn't in media monitor's path

This commit is contained in:
Martin Konecny 2012-05-09 14:18:17 -04:00
parent 3b2e812e51
commit aeb9db95f0
4 changed files with 11 additions and 5 deletions

View file

@ -325,7 +325,7 @@ class MediaMonitorCommon:
#with '\''. This breaks the string into two, and inserts an escaped single quote in between them.
#We run the command as pypo because otherwise the target file is opened with write permissions, and this causes an inotify ON_CLOSE_WRITE event
#to be fired :/
command = "sudo -u pypo liquidsoap -c 'output.dummy(audio_to_stereo(single(\"%s\")))' > /dev/null 2>&1" % pathname.replace("'", "'\\''")
command = "sudo -u pypo airtime-liquidsoap -c 'output.dummy(audio_to_stereo(single(\"%s\")))' > /dev/null 2>&1" % pathname.replace("'", "'\\''")
return_code = subprocess.call(command, shell=True)
if return_code != 0:
#print pathname for py-interpreter.log