diff options
-rw-r--r-- | contrib/debian/netdata.postinst.in | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/contrib/debian/netdata.postinst.in b/contrib/debian/netdata.postinst.in index 5a4e41af36..90049309c0 100644 --- a/contrib/debian/netdata.postinst.in +++ b/contrib/debian/netdata.postinst.in @@ -21,6 +21,10 @@ case "$1" in dpkg-statoverride --update --add root netdata 0755 /var/lib/netdata/www fi + if ! dpkg-statoverride --list /var/lib/netdata/www >/dev/null 2>&1; then + dpkg-statoverride --update --add root netdata 0775 /var/lib/netdata/registry + fi + if ! dpkg-statoverride --list /var/cache/netdata >/dev/null 2>&1; then dpkg-statoverride --update --add netdata netdata 0755 /var/cache/netdata fi @@ -38,4 +42,3 @@ esac #DEBHELPER# exit 0 - |