Re: upgrading openldapd --> slapd
Herbert Xu wrote:
> That's the problem with our current init.d package status test.
> Unfortunately, the existence of files is never going to be sufficient
> in deducing the status of a package as it may have been completed replaced
> by another package. I guess what we really need is a way of querying the
> package database from an init.d script, or have dpkg rename configuration
> files of removed packages.
test -d /usr/share/doc/openldapd || exit 0 # openldapd not installed
I admit that this is probably not a very elegant way, but it should do
the job of checking if a particular package is installed...
Roland
--
Roland Bauerschmidt
Reply to: