]> git.sur5r.net Git - openldap/commitdiff
Install slapd.conf with mode of 600.
authorKurt Zeilenga <kurt@openldap.org>
Fri, 15 Jan 1999 02:48:00 +0000 (02:48 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Fri, 15 Jan 1999 02:48:00 +0000 (02:48 +0000)
servers/slapd/Makefile.in

index 0caa3dcd01d202edd09907245ffe1c592b19500e..cb63a0191e4795d45f2e8acd350d685de5a0535b 100644 (file)
@@ -117,15 +117,20 @@ install-conf: FORCE
        @-$(MKDIR) $(sysconfdir)
        @for i in $(CFFILES); do \
                tmpcf=/tmp/$$i.$$ ; \
+               if test $$i = slapd.conf ; then
+                       mode=600
+               else
+                       mode=644
+               fi
                $(SED) -e 's;%SYSCONFDIR%;$(sysconfdir);' $(srcdir)/$$i > $$tmpcf ; \
                if test ! -f $(sysconfdir)/$$i; then \
                        echo "installing $$i in $(sysconfdir)"; \
-                       echo "$(INSTALL) $(INSTALLFLAGS) -m 644 $$tmpcf $(sysconfdir)/$$i"; \
-                       $(INSTALL) $(INSTALLFLAGS) -m 644 $$tmpcf $(sysconfdir)/$$i; \
+                       echo "$(INSTALL) $(INSTALLFLAGS) -m $$mode $$tmpcf $(sysconfdir)/$$i"; \
+                       $(INSTALL) $(INSTALLFLAGS) -m $$mode $$tmpcf $(sysconfdir)/$$i; \
                else \
                        echo "PRESERVING EXISTING CONFIGURATION FILE $(sysconfdir)/$$i" ; \
                fi; \
-               $(INSTALL) $(INSTALLFLAGS) -m 644 $$tmpcf $(sysconfdir)/$$i.default; \
+               $(INSTALL) $(INSTALLFLAGS) -m $$mode $$tmpcf $(sysconfdir)/$$i.default ; \
                $(RM) -f $$tmpcf ; \
        done