From ae2389fe71a72706415900a1f7632aebfa45a955 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Florent=20Thi=C3=A9ry?= <florent.thiery@ubicast.eu>
Date: Wed, 23 Jan 2019 17:33:33 +0100
Subject: [PATCH] always disable python buffering

---
 launcher.sh | 80 ++++++++++++++++++++++++++---------------------------
 1 file changed, 40 insertions(+), 40 deletions(-)

diff --git a/launcher.sh b/launcher.sh
index 69b7a031..74171564 100755
--- a/launcher.sh
+++ b/launcher.sh
@@ -23,79 +23,79 @@ echo "$version"
 
 # envsetup action calls
 init() {
-	python3 /root/envsetup/update_envsetup.py
+	python3 -u /root/envsetup/update_envsetup.py
 
-	python3 /root/envsetup/envsetup.py 31
-	python3 /root/envsetup/envsetup.py 32
-	python3 /root/envsetup/envsetup.py 33
-	python3 /root/envsetup/envsetup.py 34
-	python3 /root/envsetup/envsetup.py 35
+	python3 -u /root/envsetup/envsetup.py 31
+	python3 -u /root/envsetup/envsetup.py 32
+	python3 -u /root/envsetup/envsetup.py 33
+	python3 -u /root/envsetup/envsetup.py 34
+	python3 -u /root/envsetup/envsetup.py 35
 
-	python3 /root/envsetup/envsetup.py 11
-	python3 /root/envsetup/envsetup.py 12
-	python3 /root/envsetup/envsetup.py 13
+	python3 -u /root/envsetup/envsetup.py 11
+	python3 -u /root/envsetup/envsetup.py 12
+	python3 -u /root/envsetup/envsetup.py 13
 
-	python3 /root/envsetup/envsetup.py 21
-	python3 /root/envsetup/envsetup.py 22
-	python3 /root/envsetup/envsetup.py 28
+	python3 -u /root/envsetup/envsetup.py 21
+	python3 -u /root/envsetup/envsetup.py 22
+	python3 -u /root/envsetup/envsetup.py 28
 }
 
 monitor() {
-	python3 /root/envsetup/envsetup.py 25
-	python3 /root/envsetup/envsetup.py 26
-	python3 /root/envsetup/envsetup.py 41
-	python3 /root/envsetup/envsetup.py 28
+	python3 -u /root/envsetup/envsetup.py 25
+	python3 -u /root/envsetup/envsetup.py 26
+	python3 -u /root/envsetup/envsetup.py 41
+	python3 -u /root/envsetup/envsetup.py 28
 }
 
 mediaserver() {
-	python3 /root/envsetup/envsetup.py 23
-	python3 /root/envsetup/envsetup.py 24
-	python3 /root/envsetup/envsetup.py 71
-	python3 /root/envsetup/envsetup.py 25
-	python3 /root/envsetup/envsetup.py 51
-	python3 /root/envsetup/envsetup.py 25
-	python3 /root/envsetup/envsetup.py 28
+	python3 -u /root/envsetup/envsetup.py 23
+	python3 -u /root/envsetup/envsetup.py 24
+	python3 -u /root/envsetup/envsetup.py 71
+	python3 -u /root/envsetup/envsetup.py 25
+	python3 -u /root/envsetup/envsetup.py 51
+	python3 -u /root/envsetup/envsetup.py 25
+	python3 -u /root/envsetup/envsetup.py 28
 }
 
 worker() {
-	python3 /root/envsetup/envsetup.py 72
-	python3 /root/envsetup/envsetup.py 26
+	python3 -u /root/envsetup/envsetup.py 72
+	python3 -u /root/envsetup/envsetup.py 26
 }
 
 campusmanager() {
-	python3 /root/envsetup/envsetup.py 23
-	python3 /root/envsetup/envsetup.py 25
-	python3 /root/envsetup/envsetup.py 61
-	python3 /root/envsetup/envsetup.py 62
-	python3 /root/envsetup/envsetup.py 25
-	python3 /root/envsetup/envsetup.py 28
+	python3 -u /root/envsetup/envsetup.py 23
+	python3 -u /root/envsetup/envsetup.py 25
+	python3 -u /root/envsetup/envsetup.py 61
+	python3 -u /root/envsetup/envsetup.py 62
+	python3 -u /root/envsetup/envsetup.py 25
+	python3 -u /root/envsetup/envsetup.py 28
 }
 
 cache() {
-	python3 /root/envsetup/envsetup.py 81
-	python3 /root/envsetup/envsetup.py 82
-	python3 /root/envsetup/envsetup.py 25
-	python3 /root/envsetup/envsetup.py 26
+	python3 -u /root/envsetup/envsetup.py 81
+	python3 -u /root/envsetup/envsetup.py 82
+	python3 -u /root/envsetup/envsetup.py 25
+	python3 -u /root/envsetup/envsetup.py 26
 }
 
 bench() {
-	python3 /root/envsetup/envsetup.py 52
+	python3 -u /root/envsetup/envsetup.py 52
 }
 
 tests() {
-	python3 /root/envsetup/tester.py
+	python3 -u /root/envsetup/tester.py
 }
 
 backup_server() {
-	python3 /root/envsetup/envsetup.py 91
+	python3 -u /root/envsetup/envsetup.py 91
 }
 
 exportvm() {
-	python3 /root/envsetup/envsetup.py 111
+	python3 -u /root/envsetup/envsetup.py 111
 }
 
 exportvm_local() {
-	python3 /root/envsetup/envsetup.py 112
+	python3 -u /root/envsetup/envsetup.py 112
 }
 
 case "$1" in
-- 
GitLab