-make sure to autogenerate liquidsoap.cfg before liquidsoap starts

This commit is contained in:
Martin Konecny 2012-05-28 18:48:40 -04:00
parent effd28bad1
commit d8ae8002d2
5 changed files with 66 additions and 8 deletions
python_apps/pypo/install

View file

@ -109,17 +109,19 @@ try:
print e
sys.exit(1)
"""
logging.basicConfig(format='%(message)s')
#generate liquidsoap config file
#access the DB and generate liquidsoap.cfg under /etc/airtime/
ac = api_client.api_client_factory(config, logging.getLogger())
ss = ac.get_stream_setting()
if ss is not None:
generate_liquidsoap_config(ss)
else:
print "Unable to connect to the Airtime server."
"""
#initialize init.d scripts
subprocess.call("update-rc.d airtime-playout defaults >/dev/null 2>&1", shell=True)