From: Facetoe Date: Thu, 8 Dec 2016 10:58:24 +0000 (+0800) Subject: Ensure netdata owns /var/lib/netdata/. X-Git-Tag: v1.5.0~154^2 X-Git-Url: https://arthur.barton.de/gitweb/?p=netdata.git;a=commitdiff_plain;h=4007440677b89cec67036af48377505041325a4a Ensure netdata owns /var/lib/netdata/. Netdata needs to be able to create the health and registry directories on launch. The inability to do this prevents the daemon from starting. --- diff --git a/contrib/debian/netdata.postinst.in b/contrib/debian/netdata.postinst.in index c7618a59..29615f54 100644 --- a/contrib/debian/netdata.postinst.in +++ b/contrib/debian/netdata.postinst.in @@ -14,7 +14,7 @@ case "$1" in fi if ! dpkg-statoverride --list /var/lib/netdata >/dev/null 2>&1; then - dpkg-statoverride --update --add root netdata 0755 /var/lib/netdata + dpkg-statoverride --update --add netdata netdata 0755 /var/lib/netdata fi if ! dpkg-statoverride --list /var/lib/netdata/www >/dev/null 2>&1; then