Suppress tls_advertise_hosts warning during 'make install'
authorHeiko Schlittermann (HS12-RIPE) <hs@schlittermann.de>
Thu, 7 Apr 2016 07:24:01 +0000 (09:24 +0200)
committerHeiko Schlittermann (HS12-RIPE) <hs@schlittermann.de>
Thu, 7 Apr 2016 07:25:26 +0000 (09:25 +0200)
src/scripts/exim_install

index b9330ae0cff6c4c5bb1df7cc9d1264642e784484..1e8805024f055811ac104c48e5dc00454bb90416 100755 (executable)
@@ -217,13 +217,15 @@ while [ $# -gt 0 ]; do
   # The exim binary is handled specially
 
   if [ $name = exim${EXE} ]; then
-    version=exim-`./exim -bV -C /dev/null | \
+    exim="./exim -bV -C /dev/null"
+    version=exim-`$exim 2>/dev/null | \
       awk '/Exim version/ { OFS=""; print $3,"-",substr($4,2,length($4)-1) }'`${EXE}
 
     if [ "${version}" = "exim-${EXE}" ]; then
       echo $com ""
-      echo $com "*** Could not run ./exim to find version number ***"
+      echo $com "*** Could not run $exim to find version number ***"
       echo $com "*** Exim installation ${ver}failed ***"
+      $exim
       exit 1
     fi