[collectd] Insufficient permissions for collectd.conf PROPOSAL

Luboš Staněk lubek at users.sourceforge.net
Tue Nov 21 13:26:53 CET 2006


Signed-off-by: Stanek Lubos <lubek at users.sourceforge.net>
---
 src/Makefile.am |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/Makefile.am b/src/Makefile.am
index be06286..02044e8 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -388,6 +388,8 @@ #collectd_1_SOURCES = collectd.pod

 #EXTRA_DIST = $(man_MANS)

+INSTALL_SECURE = $(install_sh_SCRIPT) -m 640
+
 .pod.1:
 	pod2man --release=$(VERSION) --center=$(PACKAGE) $< >$@

@@ -398,7 +400,7 @@ install-exec-hook:
 	$(mkinstalldirs) $(DESTDIR)$(sysconfdir)
 	if test -e $(DESTDIR)$(sysconfdir)/collectd.conf; \
 	then \
-		$(INSTALL_DATA) collectd.conf
$(DESTDIR)$(sysconfdir)/collectd.conf.pkg-orig; \
+		$(INSTALL_SECURE) collectd.conf
$(DESTDIR)$(sysconfdir)/collectd.conf.pkg-orig; \
 	else \
-		$(INSTALL_DATA) collectd.conf $(DESTDIR)$(sysconfdir)/collectd.conf; \
+		$(INSTALL_SECURE) collectd.conf $(DESTDIR)$(sysconfdir)/collectd.conf; \
 	fi



More information about the collectd mailing list