From 47cc5e1b095c28119c1eaa4275a03a45adb5c812 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Diemer?= <stephane.diemer@ubicast.eu> Date: Tue, 7 Feb 2017 10:44:12 +0100 Subject: [PATCH] Do not setup Wowza if no license is set. --- 2.Common_services/4.Wowza/0_setup.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/2.Common_services/4.Wowza/0_setup.py b/2.Common_services/4.Wowza/0_setup.py index f4116db0..bd6aab86 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', -- GitLab