[packages/netdata] add default config

glen glen at pld-linux.org
Wed Apr 6 10:22:17 CEST 2016


commit 01f0b59e97a886f02a06031b24d3be6b502b71af
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Wed Apr 6 11:21:06 2016 +0300

    add default config
    
    set files owner to root
    https://github.com/firehol/netdata/pull/186#issuecomment-206194533

 netdata.conf | 10 ++++++++++
 netdata.spec |  5 ++++-
 2 files changed, 14 insertions(+), 1 deletion(-)
---
diff --git a/netdata.spec b/netdata.spec
index ba47a69..04dfb5a 100644
--- a/netdata.spec
+++ b/netdata.spec
@@ -6,11 +6,12 @@
 Summary:	Linux real time system monitoring, over the web
 Name:		netdata
 Version:	1.0.0
-Release:	0.3
+Release:	0.4
 License:	GPL v3+
 Group:		Applications/System
 Source0:	https://github.com/firehol/netdata/archive/v%{version}/%{name}-%{version}.tar.gz
 # Source0-md5:	53a432f8849da6bd49b0853dd79551c5
+Source1:	%{name}.conf
 URL:		http://netdata.firehol.org/
 BuildRequires:	autoconf
 BuildRequires:	automake
@@ -59,6 +60,8 @@ rm -rf $RPM_BUILD_ROOT
 %{__make} install \
 	DESTDIR=$RPM_BUILD_ROOT
 
+install -p %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/%{name}.conf
+
 %{__rm} $RPM_BUILD_ROOT/var/{cache,log}/netdata/.keep
 
 install -d $RPM_BUILD_ROOT%{systemdunitdir}
diff --git a/netdata.conf b/netdata.conf
new file mode 100644
index 0000000..c5a1866
--- /dev/null
+++ b/netdata.conf
@@ -0,0 +1,10 @@
+# NetData Configuration
+#
+# To see defaults, grab one from your instance:
+# http://localhost:19999/netdata.conf
+
+# global netdata configuration
+
+[global]
+	run as user = netdata
+	web files owner = root
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/netdata.git/commitdiff/01f0b59e97a886f02a06031b24d3be6b502b71af



More information about the pld-cvs-commit mailing list