Skip to content
Snippets Groups Projects
Commit e325e65b authored by Stéphane Diemer's avatar Stéphane Diemer
Browse files

Added lives conf file in wowza setup (refs #20026).

parent 11548575
No related branches found
No related tags found
No related merge requests found
#!/usr/bin/python3 #!/usr/bin/python3
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
import os
import utils import utils
......
...@@ -33,6 +33,14 @@ def setup(interactive=True): ...@@ -33,6 +33,14 @@ def setup(interactive=True):
'/etc/init.d/WowzaStreamingEngine restart', '/etc/init.d/WowzaStreamingEngine restart',
'/etc/init.d/WowzaStreamingEngineManager restart', '/etc/init.d/WowzaStreamingEngineManager restart',
] ]
ms_conf = '/etc/mediaserver/lives_conf.py'
if os.path.exists(ms_conf):
utils.log('The file "%s" already exists, it will not be changed.' % ms_conf)
else:
cmds.extend([
'mkdir -p /etc/mediaserver',
'echo "RTMP_PWD = \'%s\'" > %s' % (utils.get_conf('WOWZA_LIVE_PWD'), ms_conf),
])
if utils.get_conf('WOWZA_SERVER_NAME'): if utils.get_conf('WOWZA_SERVER_NAME'):
cmds.append('mkdir -p /var/www/streaming') cmds.append('mkdir -p /var/www/streaming')
if os.path.exists('/home/ftp/storage/www'): if os.path.exists('/home/ftp/storage/www'):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment