From accf0b526e7d4cd1f58d1034b2f82e23d0fddbff Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?St=C3=A9phane=20Diemer?= <stephane.diemer@ubicast.eu>
Date: Thu, 29 Sep 2016 16:46:59 +0200
Subject: [PATCH] Fixed MS url.

---
 22.Initialize_configuration_file/0_setup.sh | 2 +-
 envsetup-launcher.sh                        | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/22.Initialize_configuration_file/0_setup.sh b/22.Initialize_configuration_file/0_setup.sh
index 0248980b..5fa1281c 100755
--- a/22.Initialize_configuration_file/0_setup.sh
+++ b/22.Initialize_configuration_file/0_setup.sh
@@ -11,7 +11,7 @@ sed -i "s@^wowza_manager_pwd = .*@wowza_manager_pwd = '${WOWZA_MANAGER_PWD}'@" /
 sed -i "s@^wowza_license = .*@wowza_license = '${WOWZA_LICENSE}'@" /root/envsetup/conf.py
 sed -i "s@^wowza_live_pwd = .*@wowza_live_pwd = '${WOWZA_LIVE_PASSWD}'@" /root/envsetup/conf.py
 # MS
-sed -i "s@^ms_server_name = .*@ms_server_name = '${HOSTNAME}'@" /root/envsetup/conf.py
+sed -i "s@^ms_server_name = .*@ms_server_name = '${MS}'@" /root/envsetup/conf.py
 sed -i "s@^ms_superuser_pwd = .*@ms_superuser_pwd = '${SUPERUSER_PWD}'@" /root/envsetup/conf.py
 sed -i "s@^ms_admin_pwd = .*@ms_admin_pwd = '${ADMIN_PWD}'@" /root/envsetup/conf.py
 MS_ID=$(echo "$(hostname)_msuser")
diff --git a/envsetup-launcher.sh b/envsetup-launcher.sh
index 03092168..f332734d 100755
--- a/envsetup-launcher.sh
+++ b/envsetup-launcher.sh
@@ -22,9 +22,9 @@ exec > >(tee -i ${LOGFILE})
 init() {
     python3 /root/envsetup/envsetup.py 1
     python3 /root/envsetup/envsetup.py 2
-    python3 /root/envsetup/envsetup.py 4
     python3 /root/envsetup/envsetup.py 21
     python3 /root/envsetup/envsetup.py 22
+    python3 /root/envsetup/envsetup.py 4
 }
 
 monitor() {
-- 
GitLab