Code

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 be062863054a04d800594e0c7d5b9b3c28b227ca..7d707d93f1ec10dfd56f5358e428fa697703ca3c 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