diff options
author | Austin S. Hemmelgarn <austin@netdata.cloud> | 2024-02-06 09:29:57 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-06 09:29:57 -0500 |
commit | 9dec08180ce639ec3f8ef1ddeefbfa03509002b3 (patch) | |
tree | 10adbe5a7af71b1bd4d8a5a641ccdf6d8f567b31 /contrib/debian/netdata.postrm | |
parent | ae07ffe7b7db16649ea580ca48584bdd616207d1 (diff) |
Assorted cleanup of native packaging code. (#16640)
* Assorted cleanup of DEB packaging code.
* Assorted cleanup of the RPM spec file.
* DEB package fixes.
Diffstat (limited to 'contrib/debian/netdata.postrm')
-rw-r--r-- | contrib/debian/netdata.postrm | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/contrib/debian/netdata.postrm b/contrib/debian/netdata.postrm index 5644e22a51..3a68dea75c 100644 --- a/contrib/debian/netdata.postrm +++ b/contrib/debian/netdata.postrm @@ -2,19 +2,6 @@ set -e -dpkg-maintscript-helper dir_to_symlink \ - /var/lib/netdata/www/.well-known /usr/share/netdata/www/.well-known 1.18.1~ netdata -- "$@" -dpkg-maintscript-helper dir_to_symlink \ - /var/lib/netdata/www/css /usr/share/netdata/www/css 1.18.1~ netdata -- "$@" -dpkg-maintscript-helper dir_to_symlink \ - /var/lib/netdata/www/fonts /usr/share/netdata/www/fonts 1.18.1~ netdata -- "$@" -dpkg-maintscript-helper dir_to_symlink \ - /var/lib/netdata/www/images /usr/share/netdata/www/images 1.18.1~ netdata -- "$@" -dpkg-maintscript-helper dir_to_symlink \ - /var/lib/netdata/www/lib /usr/share/netdata/www/lib 1.18.1~ netdata -- "$@" -dpkg-maintscript-helper dir_to_symlink \ - /var/lib/netdata/www/static /usr/share/netdata/www/static 1.18.1~ netdata -- "$@" - case "$1" in remove) ;; @@ -27,6 +14,10 @@ case "$1" in dpkg-statoverride --remove /var/lib/netdata/www fi + if dpkg-statoverride --list | grep -qw /usr/share/netdata/www; then + dpkg-statoverride --remove /usr/share/netdata/www + fi + if dpkg-statoverride --list | grep -qw /var/lib/netdata/registry; then dpkg-statoverride --remove /var/lib/netdata/registry fi |