mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-10-15 06:17:16 +00:00
netdata: refresh netdata.conf
Our provided netdata.conf contained a lot of keys which are no longer supported by netdata. Netdata allows to regenerate the configuration file and present all possible keys with their default values. This refreshed file will be more easy to configure by our users. To generate this file, I basically ran the documented command and replaced the file paths with our variables when applicable. Signed-off-by: Enguerrand de Ribaucourt <enguerrand.de-ribaucourt@savoirfairelinux.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
1 parent
d801dfaa24
commit
5c497aa92e
2 files changed
+645
-5034
No files matched your search
File diff suppressed because it is too large.
Load diff
@@ -74,9 +74,11 @@ do_install:append() {
|
||||
# Install default netdata.conf
|
||||
install -d ${D}${sysconfdir}/netdata
|
||||
install -m 0644 ${UNPACKDIR}/netdata.conf ${D}${sysconfdir}/netdata/
|
||||
sed -i -e 's,@@sysconfdir,${sysconfdir},g' ${D}${sysconfdir}/netdata/netdata.conf
|
||||
sed -i -e 's,@@libdir,${libexecdir},g' ${D}${sysconfdir}/netdata/netdata.conf
|
||||
sed -i -e 's,@@datadir,${datadir},g' ${D}${sysconfdir}/netdata/netdata.conf
|
||||
sed -i -e 's,@@libdir,${libdir},g' ${D}${sysconfdir}/netdata/netdata.conf
|
||||
sed -i -e 's,@@libexecdir,${libexecdir},g' ${D}${sysconfdir}/netdata/netdata.conf
|
||||
sed -i -e 's,@@localstatedir,${localstatedir},g' ${D}${sysconfdir}/netdata/netdata.conf
|
||||
sed -i -e 's,@@sysconfdir,${sysconfdir},g' ${D}${sysconfdir}/netdata/netdata.conf
|
||||
|
||||
if [ "${NETDATA_ANONYMOUS}" = "enabled" ]; then
|
||||
touch ${D}${sysconfdir}/netdata/.opt-out-from-anonymous-statistics
|
||||
|
||||
Reference in new issue
Block a user