From 6996ea886425430e5e936e6345793a22eceb2879 Mon Sep 17 00:00:00 2001 From: davidplunkett Date: Wed, 1 Aug 2018 02:55:11 -0400 Subject: [PATCH] added logging Change-Id: Ia0baa678a8e5e7d5ebe1644d3b39985ef9c0f33b Signed-off-by: davidplunkett --- install_server_os.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/install_server_os.sh b/install_server_os.sh index 348e22c..69e9b08 100755 --- a/install_server_os.sh +++ b/install_server_os.sh @@ -72,6 +72,11 @@ export NO_CONFIRM; export NO_APPLY_HW; export RCFILE; +# SETUP LOGGING +MYLOGFILE="`basename $0`-${RCFILE##*/}-`date -Im`.log" +exec 1> >(tee -a "$MYLOGFILE") 2>&1 +echo "Logging to $MYLOGFILE" + # SETUP TOOLS AND LOAD DEFAULT BUILD VARIABLES BASEDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" . $BASEDIR/setup_tools.sh 1>&2 -- 2.16.6