X-Git-Url: https://git.exim.org/exim.git/blobdiff_plain/3634fc257bd0667daef14d72005cd87c735bbb24..7b162fc84e202a16b89fa11224737ffbdd240bc8:/src/scripts/exim_install diff --git a/src/scripts/exim_install b/src/scripts/exim_install index b9330ae0c..85e444377 100755 --- a/src/scripts/exim_install +++ b/src/scripts/exim_install @@ -1,5 +1,8 @@ #! /bin/sh +# Copyright (c) The Exim Maintainters 2022 - 2023 +# SPDX-License-Identifier: GPL-2.0-or-later + # Script to install Exim binaries in BIN_DIRECTORY, which is defined in # the local Makefile. It expects to be run in a build directory. It needs # to be run as root in order to make exim setuid to root. If exim runs setuid @@ -195,7 +198,7 @@ else set exim${EXE} ${exim_monitor} exim_dumpdb${EXE} exim_fixdb${EXE} \ exim_tidydb${EXE} exinext exiwhat exim_dbmbuild${EXE} exicyclog \ exigrep eximstats exipick exiqgrep exiqsumm exim_lock${EXE} \ - exim_checkaccess + exim_checkaccess exim_msgdate exim_id_update fi echo $com "" @@ -217,13 +220,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