Re: [Exim] multiple configuration file option broke included…

Pàgina inicial
Delete this message
Reply to this message
Autor: Dean Brooks
Data:  
A: exim-users
Assumpte: Re: [Exim] multiple configuration file option broke included scripts
On Wed, Dec 11, 2002 at 02:50:01PM +0100, Andreas Metzler wrote:

> Most/some of the scripts included with exim use something like this,
> afaict mainly to find the path to the exim-binary
> ------------------
> 01 configure_file_use_node=CONFIGURE_FILE_USE_NODE
> 02 if [ "$configure_file_use_node" = "yes" ]; then
> 03   host=`uname -n`
> 04   if [ ! "$host" != "" ]; then
> 05       if [ -f CONFIGURE_FILE.$host ]; then
> 06           hostsuffix=.$host
> 07       fi
> 08   fi
> 09 fi
> 10 config=CONFIGURE_FILE$hostsuffix
> ...
> 11 EXIM_PATH=`grep '^[     ]*exim_path' $config | sed 's/.*=[      ]*//'`
> 12 if test "$EXIM_PATH" = ""; then EXIM_PATH=BIN_DIRECTORY/exim; fi


The other problem with these scripts is that the use of macros
for the value of exim_path will wreak havoc, as in:

EXIM_BINARY=/usr/lib/sendmail
exim_path=EXIM_BINARY

Not sure if there is a good solution to this, though, other than
to document clearly that exim_path must be listed as an absolute
value with no macro substitution.

--
Dean Brooks
dean@???