making a PRE_INSTALL
Dennis Veatch
dveatch at woh.rr.com
Wed Aug 3 09:54:00 UTC 2005
On Wednesday 03 August 2005 05:31 am, Auke Kok wrote:
> Dennis Veatch wrote:
> >I've made one for postgresql but a lin doesn't pick it up. The contents
> > are pretty straight forward;
> >
> >if [ -f /var/lib/pgsql/data/PG_VERSION ]
> > then
> > if [ `cat /var/lib/pgsql/data/PG_VERSION` != '8.0' ]
> > then
> > printf "A pre 8.0 version of the database was found."\n "You
> > need to upgrade the data format to 8.0".\n"The install will not
> > continue"\n exit 1
> > fi
> > fi
> >
> >
> >Is there something I'm overlooking here?
>
> PRE_INSTALL is not implemented since it would be the same as PRE_BUILD.
> I suggest you use this code in a CONFIGURE which runs much earlier and
> would be the best place to put code like this (and for which it is
> already being used by a few modules).
>
> sofar
>
Ahh, so that's why. Guess I should stop RTFM :) Doh!
Thanks sofar.
More information about the Lunar
mailing list