From 699b56d084f6e87dc36c8070f06a052de97ae7bb Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?St=C3=A9phane=20Diemer?= <stephane.diemer@ubicast.eu>
Date: Thu, 8 Dec 2016 14:48:29 +0100
Subject: [PATCH] Fixed a bug in conf initialization.

---
 22.Initialize_configuration_file/0_setup.sh | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/22.Initialize_configuration_file/0_setup.sh b/22.Initialize_configuration_file/0_setup.sh
index a737add2..a5a93531 100755
--- a/22.Initialize_configuration_file/0_setup.sh
+++ b/22.Initialize_configuration_file/0_setup.sh
@@ -7,7 +7,7 @@ if [ "${MS_ID}" = "" ]; then
 	if ( cat "/root/envsetup/conf.sh" | grep "MS_ID" >/dev/null ); then
 		sed -i "s@^MS_ID=.*@MS_ID='${MS_ID}'@" /root/envsetup/conf.sh
 	else
-		echo "MS_ID='${MS_ID}'" > /root/envsetup/conf.sh
+		echo "MS_ID='${MS_ID}'" >> /root/envsetup/conf.sh
 	fi
 fi
 if [ "${MS_API_KEY}" = "" ]; then
@@ -17,7 +17,7 @@ if [ "${MS_API_KEY}" = "" ]; then
 	if ( cat "/root/envsetup/conf.sh" | grep "MS_API_KEY" >/dev/null ); then
 		sed -i "s@^MS_API_KEY=.*@MS_API_KEY='${MS_API_KEY}'@" /root/envsetup/conf.sh
 	else
-		echo "MS_API_KEY='${MS_API_KEY}'" > /root/envsetup/conf.sh
+		echo "MS_API_KEY='${MS_API_KEY}'" >> /root/envsetup/conf.sh
 	fi
 fi
 if [ "${MS_SECRET}" = "secret" ]; then
@@ -25,7 +25,7 @@ if [ "${MS_SECRET}" = "secret" ]; then
 	if ( cat "/root/envsetup/conf.sh" | grep "MS_SECRET" >/dev/null ); then
 		sed -i "s@^MS_SECRET=.*@MS_SECRET='${MS_SECRET}'@" /root/envsetup/conf.sh
 	else
-		echo "MS_SECRET='${MS_SECRET}'" > /root/envsetup/conf.sh
+		echo "MS_SECRET='${MS_SECRET}'" >> /root/envsetup/conf.sh
 	fi
 fi
 # Worker IP for whitelist
@@ -34,6 +34,6 @@ if [ "${CELERITY_WORKER_IP}" = "" ]; then
 	if ( cat "/root/envsetup/conf.sh" | grep "CELERITY_WORKER_IP" >/dev/null ); then
 		sed -i "s@^CELERITY_WORKER_IP=.*@CELERITY_WORKER_IP='${CELERITY_WORKER_IP}'@" /root/envsetup/conf.sh
 	else
-		echo "CELERITY_WORKER_IP='${CELERITY_WORKER_IP}'" > /root/envsetup/conf.sh
+		echo "CELERITY_WORKER_IP='${CELERITY_WORKER_IP}'" >> /root/envsetup/conf.sh
 	fi
 fi
-- 
GitLab