disable output redirect 14/2014/1 master
authordavidplunkett <dp7642@att.com>
Wed, 20 Nov 2019 08:33:58 +0000 (08:33 +0000)
committerdavidplunkett <dp7642@att.com>
Wed, 20 Nov 2019 08:33:58 +0000 (08:33 +0000)
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 <dp7642@att.com>
Change-Id: Iecf52c4b14019c83ef98d823e7c23ddcc61251ff

install_server_os.sh

index 2b173c3..b99cce9 100755 (executable)
@@ -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