diff options
-rw-r--r-- | debian/netdata.postinst.in | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/debian/netdata.postinst.in b/debian/netdata.postinst.in index 643b99d55..48989f11e 100644 --- a/debian/netdata.postinst.in +++ b/debian/netdata.postinst.in @@ -11,15 +11,15 @@ case "$1" in if ! getent passwd netdata >/dev/null; then adduser --quiet --system --ingroup netdata --home /var/lib/netdata --no-create-home netdata - mkdir -p /var/lib/netdata + mkdir -p /var/lib/netdata fi - for dir_name in /var/cache/netdata /var/lib/netdata; do - if ! dpkg-statoverride --list "$dir_name" >/dev/null 2>&1; then - dpkg-statoverride --update --add netdata netdata 0755 "$dir_name" - fi + for dir_name in /var/cache/netdata /var/lib/netdata; do + if ! dpkg-statoverride --list "$dir_name" >/dev/null 2>&1; then + dpkg-statoverride --update --add netdata netdata 0755 "$dir_name" + fi - done + done fi chown -R root:netdata /usr/lib/@DEB_HOST_MULTIARCH@/netdata/plugins.d |