From: Kurt Zeilenga Date: Fri, 15 Jan 1999 02:48:00 +0000 (+0000) Subject: Install slapd.conf with mode of 600. X-Git-Tag: OPENLDAP_SLAPD_BACK_LDAP~776 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=163bac5f04547a35b7b7bd0c4f7d01e4c4189eeb;p=openldap Install slapd.conf with mode of 600. --- diff --git a/servers/slapd/Makefile.in b/servers/slapd/Makefile.in index 0caa3dcd01..cb63a0191e 100644 --- a/servers/slapd/Makefile.in +++ b/servers/slapd/Makefile.in @@ -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