From 93fc687d50a81c36ffe0380c1385639fe3a45663 Mon Sep 17 00:00:00 2001 From: davidplunkett Date: Wed, 20 Nov 2019 08:33:58 +0000 Subject: [PATCH] disable output redirect disable redirection of install_server_os.sh output using process substitution and exec because it causes the script to stall for ~8.5 minutes after the install has completed. this feature can be renabled in the future if a resolution or alternative redirection method is identified Signed-off-by: davidplunkett Change-Id: Iecf52c4b14019c83ef98d823e7c23ddcc61251ff --- install_server_os.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/install_server_os.sh b/install_server_os.sh index 2b173c3..b99cce9 100755 --- a/install_server_os.sh +++ b/install_server_os.sh @@ -31,9 +31,9 @@ UBUNTU_ISO=${UBUNTU_ISO:-} ## IF NOT SET, UBUNTU_URL WILL BE USED TO DOWNLOAD D LOGDIR="/var/log/akraino" mkdir -p $LOGDIR LOGFILE="$LOGDIR/$(basename $0|cut -d. -f1)_$(date +'%FT%H-%M-%S%z')" -echo "logging to $LOGFILE" -exec 1> >(tee -a $LOGFILE) -exec 2>&1 +#echo "logging to $LOGFILE" +#exec 1> >(tee -a $LOGFILE) +#exec 2>&1 echo "Beginning $0 as user [$USER] in pwd [$PWD] with home [$HOME]" @@ -432,8 +432,8 @@ echo "SUCCESS: Try connecting with 'ssh root@$SRV_IP' as user $USER" echo "Elapsed time was $(( ($ENDTIME - $STARTTIME) / 60 )) minutes and $(( ($ENDTIME - $STARTTIME) % 60 )) seconds" ## CLOSE REDIRECTED IO -exec 2>&- -exec 1>&- +#exec 2>&- +#exec 1>&- exit 0 -- 2.16.6