From ac8f579696492ff682e9afb03c04cb540e128ca9 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 14 Aug 2019 17:51:04 +0200 Subject: Moving local netdata.conf into subdirectory within source tree for consistency. Signed-off-by: Daniel Baumann --- debian/local/netdata.conf | 19 ------------------- debian/local/netdata/netdata.conf | 19 +++++++++++++++++++ debian/rules | 4 ++-- 3 files changed, 21 insertions(+), 21 deletions(-) delete mode 100644 debian/local/netdata.conf create mode 100644 debian/local/netdata/netdata.conf diff --git a/debian/local/netdata.conf b/debian/local/netdata.conf deleted file mode 100644 index e15f9b89b..000000000 --- a/debian/local/netdata.conf +++ /dev/null @@ -1,19 +0,0 @@ -# NetData Configuration - -# The current full configuration can be retrieved from the running -# server at the URL -# -# http://localhost:19999/netdata.conf -# -# for example: -# -# wget -O /etc/netdata/netdata.conf http://localhost:19999/netdata.conf -# - -[global] - run as user = netdata - web files owner = root - web files group = root - # Netdata is not designed to be exposed to potentially hostile - # networks. See https://github.com/netdata/netdata/issues/164 - bind socket to IP = 127.0.0.1 diff --git a/debian/local/netdata/netdata.conf b/debian/local/netdata/netdata.conf new file mode 100644 index 000000000..e15f9b89b --- /dev/null +++ b/debian/local/netdata/netdata.conf @@ -0,0 +1,19 @@ +# NetData Configuration + +# The current full configuration can be retrieved from the running +# server at the URL +# +# http://localhost:19999/netdata.conf +# +# for example: +# +# wget -O /etc/netdata/netdata.conf http://localhost:19999/netdata.conf +# + +[global] + run as user = netdata + web files owner = root + web files group = root + # Netdata is not designed to be exposed to potentially hostile + # networks. See https://github.com/netdata/netdata/issues/164 + bind socket to IP = 127.0.0.1 diff --git a/debian/rules b/debian/rules index 07538409c..8359b1c8a 100755 --- a/debian/rules +++ b/debian/rules @@ -79,7 +79,7 @@ override_dh_install-arch: # Copy architecture dependent plugins mkdir -p $(TOP)-core/etc/netdata - cp debian/local/netdata.conf $(TOP)-core/etc/netdata + cp debian/local/netdata/netdata.conf $(TOP)-core/etc/netdata touch $(TOP)-core/etc/netdata/.opt-out-from-anonymous-statistics mkdir -p $(TOP)-core/usr/lib/netdata/plugins.d @@ -94,7 +94,7 @@ ifeq (netdata-core-no-sse,$(findstring netdata-core-no-sse,$(PACKAGES))) dh_install -p netdata-core-no-sse --sourcedir=debian/tmp-core-no-sse mkdir -p $(TOP)-core-no-sse/etc/netdata - cp debian/local/netdata.conf $(TOP)-core-no-sse/etc/netdata + cp debian/local/netdata/netdata.conf $(TOP)-core-no-sse/etc/netdata touch $(TOP)-core-no-sse/etc/netdata/.opt-out-from-anonymous-statistics mkdir -p $(TOP)-core-no-sse/usr/lib/netdata/plugins.d -- cgit v1.2.3