From cb85a3792c8d570f4fd9b0292c817a2206fd09f7 Mon Sep 17 00:00:00 2001
From: "Hahn Axel (hahn)" <axel.hahn@iml.unibe.ch>
Date: Thu, 4 Nov 2021 16:53:02 +0100
Subject: [PATCH] 4806 - write STDERR and log cleanup to log

---
 deploy_app.sh | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/deploy_app.sh b/deploy_app.sh
index bc919b6..cb34883 100755
--- a/deploy_app.sh
+++ b/deploy_app.sh
@@ -353,8 +353,7 @@ fi
 test -d "${logdir}" || mkdir -p "${logdir}"
 for myprofile in $allprofiles
 do
-    deploy $myprofile | tee ${logdir}/${myprofile}__$(date +%Y-%m-%d__%H%M%S).log
-    logdelete $myprofile
+    ( deploy $myprofile; logdelete $myprofile ) 2>&1 | tee ${logdir}/${myprofile}__$(date +%Y-%m-%d__%H%M%S).log
     profile=
 done
 
-- 
GitLab