]> arthur.barton.de Git - netdata.git/commitdiff
Ensure netdata owns /var/lib/netdata/.
authorFacetoe <facetoe@facetoe.com.au>
Thu, 8 Dec 2016 10:58:24 +0000 (18:58 +0800)
committerFacetoe <facetoe@facetoe.com.au>
Thu, 8 Dec 2016 10:58:24 +0000 (18:58 +0800)
Netdata needs to be able to create the health and registry directories
on launch. The inability to do this prevents the daemon from starting.

contrib/debian/netdata.postinst.in

index c7618a59245f91eb5aea86309e46cda7c4ff4ff3..29615f5413190ab56560199b483fe1ee018d2044 100644 (file)
@@ -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