This is the mail archive of the
cygwin-apps
mailing list for the Cygwin project.
Re: [RFU] lftp 3.4.7-1
- From: Schulman dot Andrew at epamail dot epa dot gov
- To: cygwin-apps at cygwin dot com
- Date: Thu, 25 May 2006 15:29:42 -0400
- Subject: Re: [RFU] lftp 3.4.7-1
> > I've kept the postinstall script from the old version. That script
is
> > fancier than just plain old
> >
> > [ -f /etc/lftp.conf ] || cp /etc/defaults/etc/lftp.conf /etc
> >
> > but that's what it in fact does in an automated installation (e.g.
> > setup.exe). In an interactive installation, it will prompt the user
to
> > decide whether to replace an existing config file. Maybe not too
> > useful, but no harm done either.
>
> Just to make sure, does it actually read its input from stdin? If so,
> it's not going to work in older versions of setup (before it started
> redirecting postinstall script input from /dev/null).
No. It looks to see if it was invoked as /etc/postinstall/lftp.sh, and
if so assumes a "no" answer to the "Overwrite existing /etc/lftp.conf?"
question. It does print some installation chatter to stdout, but I
believe that's okay.
I have no particular attachment to this script. I'd be just as happy
with the simple version I mentioned above, but decided to leave it since
it was already there.
A.