[Date Prev][Date Next]
Re: (ITS#6050) make install overwrites schema dir
> Full_Name: Theral Mackey
> Version: 2.4.16
> OS: Linux/Debian
> URL: ftp://ftp.openldap.org/incoming/
> Submission from: (NULL) (184.108.40.206)
> Running make install leaves an existing slapd.conf alone, but happily nukes and
> replaces the existing schema directory, taking with it any additional or custom
> schema, leaving you with only the ones installed by default (hooray for svn and
No, it doesn't.
> For consistency, it should probably either nuke slapd.conf as well, or leave an
> existing schema dir alone (I vote for option 2).
> fix should be as simple as an 'if [ ! -d $base/schema ] ; then (mkdir, cp
> schemas, etc) ; fi' around where it drops the schemas in place in the Makefile
Since you're already looking in the Makefile, you should see this for the
@if test -d $(DESTDIR)$(schemadir) ; then \
echo "MOVING EXISTING SCHEMA DIR to $(DESTDIR)$(schemadir).$$$$" ; \
mv $(DESTDIR)$(schemadir) $(DESTDIR)$(schemadir).$$$$ ; \
The existing schema directory is simply renamed / moved out of the way. If you
had any custom schema files stored there, they are still there.
This ITS will be closed.
-- Howard Chu
CTO, Symas Corp. http://www.symas.com
Director, Highland Sun http://highlandsun.com/hyc/
Chief Architect, OpenLDAP http://www.openldap.org/project/