From 1ea729492758e4379b35f8fc8929a04fc7f0a05a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?St=C3=A9phane=20Diemer?= <stephane.diemer@ubicast.eu>
Date: Mon, 7 Aug 2017 15:34:23 +0200
Subject: [PATCH] Updated Wowza (refs #22212).

---
 2.Common_services/4.Wowza/0_setup.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/2.Common_services/4.Wowza/0_setup.py b/2.Common_services/4.Wowza/0_setup.py
index f8438436..aabb21a7 100644
--- a/2.Common_services/4.Wowza/0_setup.py
+++ b/2.Common_services/4.Wowza/0_setup.py
@@ -12,7 +12,7 @@ def setup(interactive=True):
     if not license:
         utils.log('No Wowza license set, skipping Wowza installation.')
         return
-    wowza_setup_name = 'WowzaStreamingEngine-4.5.0-linux-x64-installer.deb'
+    wowza_setup_name = 'WowzaStreamingEngine-4.7.1-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:
         jre_package = 'openjdk-7-jre-headless'  # 14.04
@@ -21,6 +21,7 @@ def setup(interactive=True):
     cmds = [
         'apt-get install -y %s' % jre_package,
         # Get and install Wowza
+        '[ -f "/tmp/%(name)s" ] && (dpkg -I "/tmp/%(name)s" || rm "/tmp/%(name)s") || true' % {'name': wowza_setup_name},
         '[ -f "/tmp/%(name)s" ] || wget -q "https://panel.ubicast.eu/media/storage/%(name)s" -O "/tmp/%(name)s"' % {'name': wowza_setup_name},
         'dpkg -i "/tmp/%s"' % wowza_setup_name,
         # Configure Wowza
-- 
GitLab