Fix bug where users can't connect to Master source due to hardcoded path in liquidsoap

This commit is contained in:
Duncan Sommerville 2015-05-21 12:49:26 -04:00
parent 2f20729e05
commit 196e08fc90
2 changed files with 6 additions and 3 deletions

View file

@ -1,4 +1,5 @@
import logging
import os
import sys
import time
import traceback
@ -23,7 +24,9 @@ def generate_liquidsoap_config(ss):
str_buffer = "%s = %s\n" % (key, val)
fh.write(str_buffer.encode('utf-8'))
auth_path = os.path.dirname(os.path.realpath(__file__))
fh.write('log_file = "/var/log/airtime/pypo-liquidsoap/<script>.log"\n')
fh.write('auth_path = "%s/liquidsoap_auth.py"\n' % auth_path)
fh.close()
def run():