diff options
author | davent <davent@lumux.co.uk> | 2019-09-17 13:00:36 +0100 |
---|---|---|
committer | Chris Akritidis <43294513+cakrit@users.noreply.github.com> | 2019-09-17 14:00:36 +0200 |
commit | 2702df00c3df523994b3f4ebe03a2c1289f5b0ae (patch) | |
tree | 6e9674165096b96e50412795c576847207dcd510 /contrib/debian/netdata.postrm | |
parent | 593043778a32d290540d34d3642c4709d4ecae42 (diff) |
/var/lib/netdata/registry was being left behind after purge (#6867)
When removing/purging the Debian package
```
root netdata 775 /var/lib/netdata/registry
```
was being left behind in the `/var/lib/dpkg/statoverride` file. This causes subsequent installations to fail with:
```
dpkg: unrecoverable fatal error, aborting:
unknown group 'netdata' in statoverride file
```
Diffstat (limited to 'contrib/debian/netdata.postrm')
-rw-r--r-- | contrib/debian/netdata.postrm | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/contrib/debian/netdata.postrm b/contrib/debian/netdata.postrm index 4ab4eeadd9..94e82bcd45 100644 --- a/contrib/debian/netdata.postrm +++ b/contrib/debian/netdata.postrm @@ -15,6 +15,10 @@ case "$1" in dpkg-statoverride --remove /var/lib/netdata/www fi + if dpkg-statoverride --list | grep -qw /var/lib/netdata/registry; then + dpkg-statoverride --remove /var/lib/netdata/registry + fi + if dpkg-statoverride --list | grep -qw /var/lib/netdata; then dpkg-statoverride --remove /var/lib/netdata fi |