From 15219001b1130a53d82edc213600964ffaeeff5e Mon Sep 17 00:00:00 2001 From: Ulf Gebhardt Date: Sat, 12 Mar 2022 03:08:45 +0100 Subject: [PATCH] try ussing tee for proper logoutput in console and file --- deployment/bare_metal/start.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/deployment/bare_metal/start.sh b/deployment/bare_metal/start.sh index ede5cab5d..c6aadeb27 100755 --- a/deployment/bare_metal/start.sh +++ b/deployment/bare_metal/start.sh @@ -50,7 +50,8 @@ TODAY=$(date +"%Y-%m-%d") # redirect all output of the script to the UPDATE_HTML and also have things on console # TODO: this might pose a security risk -exec 3>&1 1>>$UPDATE_HTML 2>&1 +# exec 3>&1 1>>$UPDATE_HTML 2>&1 +exec > >(tee $UPDATE_HTML) 2>&1 # configure nginx for the update-page echo 'Configuring nginx to serve the update-page' >> $UPDATE_HTML