src/Makefile.am: Install the `collectd.conf' with restricted permissions, 0640.
authorFlorian Forster <octo@leeloo.lan.home.verplant.org>
Tue, 21 Nov 2006 16:10:52 +0000 (17:10 +0100)
committerFlorian Forster <octo@leeloo.lan.home.verplant.org>
Tue, 21 Nov 2006 16:10:52 +0000 (17:10 +0100)
Thanks to Lubos for suggesting this :)

src/Makefile.am

index be06286..7d707d9 100644 (file)
@@ -398,7 +398,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) -m 0640 collectd.conf $(DESTDIR)$(sysconfdir)/collectd.conf.pkg-orig; \
        else \
-               $(INSTALL_DATA) collectd.conf $(DESTDIR)$(sysconfdir)/collectd.conf; \
+               $(INSTALL) -m 0640 collectd.conf $(DESTDIR)$(sysconfdir)/collectd.conf; \
        fi