]> arthur.barton.de Git - netdata.git/commitdiff
package web files as root:netdata
authorElan Ruusamäe <glen@delfi.ee>
Fri, 8 Apr 2016 12:04:04 +0000 (15:04 +0300)
committerElan Ruusamäe <glen@delfi.ee>
Fri, 8 Apr 2016 12:11:01 +0000 (15:11 +0300)
netdata.spec.in
system/Makefile.am
system/netdata.conf [new file with mode: 0644]

index c4f412be7704dfae1113b1c677a58e92cf1baa84..40655a52263d48ea1bab98aab2ffaf49a2dcaadd 100644 (file)
@@ -58,6 +58,8 @@ rm -rf $RPM_BUILD_ROOT
 %{__make} %{?_smp_mflags} install \
        DESTDIR=$RPM_BUILD_ROOT
 
+install -m 644 -p system/netdata.conf $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/*.conf
+
 find $RPM_BUILD_ROOT -name .keep | xargs rm
 
 %if %{with systemd}
@@ -89,9 +91,13 @@ rm -rf $RPM_BUILD_ROOT
 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/*.conf
 %dir %{_sysconfdir}/%{name}
 %{?with_systemd:%{_unitdir}/netdata.service}
-%{_datadir}/%{name}
 %{_libexecdir}/%{name}
 %{_sbindir}/%{name}
+%dir %{_datadir}/%{name}
+
+# override defattr for web files
+%defattr(755,root,netdata,644)
+%{_datadir}/%{name}/web
 
 %changelog
 * Tue Mar 22 2016 Costa Tsaousis <costa@tsaousis.gr> - 1.0.0-1
index 49cb5f7bc1b481f30f33c64674a865e554ce5c7f..ca22cd55d7aa574ff54f93471c5fb6f9162f87ea 100644 (file)
@@ -22,4 +22,5 @@ dist_noinst_DATA = \
        netdata-openrc.in \
        netdata.service.in \
        netdata-init-d.in \
+       netdata.conf \
        $(NULL)
diff --git a/system/netdata.conf b/system/netdata.conf
new file mode 100644 (file)
index 0000000..12a65fe
--- /dev/null
@@ -0,0 +1,9 @@
+# NetData Configuration
+#
+# To see defaults, grab one from your instance:
+# http://localhost:19999/netdata.conf
+
+# global netdata configuration
+
+[global]
+       web files owner = root