From f901af014ec3649bb01f0ed669965a4b681d8424 Mon Sep 17 00:00:00 2001 From: Michael Howe Date: Thu, 21 Dec 2017 18:59:45 +0000 Subject: [PATCH] Remove Debian version test from prerm/postinst It only tells us the state at the time of install, which isn't helpful if you subsequently upgrade it. --- debian/changelog | 2 +- debian/postinst | 6 +++--- debian/prerm | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/debian/changelog b/debian/changelog index ed040b8..7aec330 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,4 +1,4 @@ -munin-plugins-local (0.10~test.4) UNRELEASED; urgency=medium +munin-plugins-local (0.10~test.5) UNRELEASED; urgency=medium * Add lvmcache_ plugin, for graphing lvm cache state * Add prerm and postinst to handle duplication of unbound_munin_ (also diff --git a/debian/postinst b/debian/postinst index bd9d5d9..13065a6 100644 --- a/debian/postinst +++ b/debian/postinst @@ -3,11 +3,11 @@ set -e if [ "$1" = configure ]; then - DEBIAN_VERSION=$(sed -e 's/\..*//' /etc/debian_version) - if [ $DEBIAN_VERSION -gt 8 ]; then +# DEBIAN_VERSION=$(sed -e 's/\..*//' /etc/debian_version) +# if [ $DEBIAN_VERSION -gt 8 ]; then # for stretch and above unbound includes the unbound_munin plugin itself dpkg-divert --add --package munin-plugins-local --rename --divert /usr/share/munin/plugins/unbound_munin_.distrib /usr/share/munin/plugins/unbound_munin_ - fi +# fi fi #DEBHELPER# diff --git a/debian/prerm b/debian/prerm index b028e1a..e260e87 100644 --- a/debian/prerm +++ b/debian/prerm @@ -3,11 +3,11 @@ set -e if [ "$1" = remove ]; then - DEBIAN_VERSION=$(sed -e 's/\..*//' /etc/debian_version) - if [ $DEBIAN_VERSION -gt 8 ]; then +# DEBIAN_VERSION=$(sed -e 's/\..*//' /etc/debian_version) +# if [ $DEBIAN_VERSION -gt 8 ]; then # for stretch and above unbound includes the unbound_munin plugin itself dpkg-divert --remove --package munin-plugins-local --rename --divert /usr/share/munin/plugins/unbound_munin_.distrib /usr/share/munin/plugins/unbound_munin_ - fi +# fi fi #DEBHELPER# -- 2.39.5