Commit 6574fb62 authored by Leo's avatar Leo

testing/netdata: ship /var/lib/netdata with proper permissions

We already do that for /var/log/netdata and /var/cache/netdata, this is
the last piece for people that want to run netadata outside of docker
containers.

Fixes #11678
parent aa5f0cf1
......@@ -2,7 +2,7 @@
# Maintainer: Kevin Daudt <kdaudt@alpinelinux.org>
pkgname=netdata
pkgver=1.22.1
pkgrel=0
pkgrel=1
pkgdesc="Real-time performance monitoring"
url="https://www.netdata.cloud/"
license="GPL-3.0-or-later"
......@@ -51,8 +51,10 @@ package() {
setcap cap_dac_read_search,cap_sys_ptrace+ep \
"$pkgdir"/usr/libexec/netdata/plugins.d/apps.plugin
install -d -Dm0750 -o netdata -g netdata "$pkgdir"/var/log/netdata
install -d -Dm0750 -o netdata -g netdata "$pkgdir"/var/cache/netdata
install -d -m0750 -o netdata -g netdata \
"$pkgdir"/var/lib/netdata \
"$pkgdir"/var/log/netdata \
"$pkgdir"/var/cache/netdata
}
nodejs() {
......@@ -94,4 +96,4 @@ python() {
}
sha512sums="47a0b6c4c1b3d8ab18cf25725223c72683ed74084f0efd09cddbe293950839315f8fcadb16c2e5fa9a179745f20b08ce8652d4b972465eacc6a1792b4cfc296e netdata-1.22.1.tar.gz
98dd8f188dfffe1221d05a4dd369e8f4f8dc2bf7a722ac8769afd351324b53b37c5675e705a4d42d20ce93ea9497fda9eb2457edaa500d4e72c9f1350b1d4652 netdata.initd"
a97e25ac81e8ea9912fd3dcbb04f4116cd3ff1dace2279795579a7c202ab905e5c2a3bd977a93015ac3c889c3359cc4fd8e8f765240e5a3bf7c1254d8484c017 netdata.initd"
......@@ -12,7 +12,6 @@ depend() {
}
start_pre() {
checkpath --directory --owner netdata:netdata --mode 0750 /var/lib/netdata
checkpath --directory --owner netdata:netdata --mode 0750 /var/log/netdata
checkpath --directory --owner netdata:netdata --mode 0750 /var/cache/netdata
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment