From 163bac5f04547a35b7b7bd0c4f7d01e4c4189eeb Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Fri, 15 Jan 1999 02:48:00 +0000 Subject: [PATCH] Install slapd.conf with mode of 600. --- servers/slapd/Makefile.in | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) 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 -- 2.39.5