[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
Re: error in script "offline" / Patch!
Quoting hans-joachim.leidinger@home.gelsen-net.de (hans-joachim.leidinger@home.gelsen-net.de):
> ****** message to minivend-users from hans-joachim.leidinger@home.gelsen-net.de ******
>
> Hi Mike Heins,
>
> i have try to use the bin/offline script. But i get the message
>
> Can't find executable ('/usr/lib/sendmail') for the SendMailProgram directive
> In line 0 of the configuration file 'minivend.cfg':
>
> This is the same message from the older configdump by Stefan Hornburg.
> If i use the same patch from Stefan Hornburg, it works well. See below:
>
> server:# diff offline(original) bin/offline(patch)
> 96c96,99
> <
> ---
> > # some systems have no compatibility link /usr/lib/sendmail
> > if (-x '/usr/sbin/sendmail') {
> > $Global::SendMailLocation = '/usr/sbin/sendmail';
> > }
> server:#
>
> Is this correct?
>
Yes, though I have now added this to all programs that
require Vend::Config.pm:
$Global::SendMailLocation = 'none';
That should work even on systems that don't have /usr/sbin/sendmail.
--
Mike Heins http://www.minivend.com/ ___
Internet Robotics |_ _|____
131 Willow Lane, Floor 2 | || _ \
It's a little-known fact Oxford, OH 45056 | || |_) |
that the Y1K problem caused <mikeh@minivend.com> |___| _ <
the Dark Ages. -- unknown 513.523.7621 FAX 7501 |_| \_\