diff --git a/2.Common_services/4.Wowza/0_setup.py b/2.Common_services/4.Wowza/0_setup.py index f4116db04bcfa9c1e3f9f27ef1324f1b63f2d065..bd6aab8602d85554e0db47958b48351e7c1bd69c 100644 --- a/2.Common_services/4.Wowza/0_setup.py +++ b/2.Common_services/4.Wowza/0_setup.py @@ -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',