making a PRE_INSTALL
Auke Kok
sofar at lunar-linux.org
Wed Aug 3 09:31:10 UTC 2005
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
More information about the Lunar
mailing list