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

Do not setup Wowza if no license is set.

parent 7727e09f
No related branches found
No related tags found
No related merge requests found
......@@ -7,6 +7,10 @@ import utils
def setup(interactive=True):
dir_path = utils.get_dir(__file__)
license = utils.get_conf('WOWZA_LICENSE')
if not license:
utils.log('No Wowza license set, skipping Wowza installation.')
return
wowza_setup_name = 'WowzaStreamingEngine-4.5.0-linux-x64-installer.deb'
utils.log('It may take a while to download the Wowza installer from the UbiCast server.')
if utils.check_cmd('lsb_release -a | grep 14') == 0:
......@@ -19,7 +23,7 @@ def setup(interactive=True):
'[ -f "/tmp/%(name)s" ] || wget -q "https://www.ubicast.eu/media/downloads/packages/%(name)s" -O "/tmp/%(name)s"' % {'name': wowza_setup_name},
'dpkg -i "/tmp/%s"' % wowza_setup_name,
# Configure Wowza
'echo "%s" > /usr/local/WowzaStreamingEngine/conf/Server.license' % utils.get_conf('WOWZA_LICENSE'),
'echo "%s" > /usr/local/WowzaStreamingEngine/conf/Server.license' % license,
'echo "ubicast %s admin" > /usr/local/WowzaStreamingEngine/conf/admin.password' % utils.get_conf('WOWZA_MANAGER_PWD'),
'update-rc.d WowzaStreamingEngine defaults',
'update-rc.d WowzaStreamingEngineManager defaults',
......
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