]> git.michaelhowe.org Git - packages/m/munin-plugins-local.git/commitdiff
Remove Debian version test from prerm/postinst
authorMichael Howe <michael@michaelhowe.org>
Thu, 21 Dec 2017 18:59:45 +0000 (18:59 +0000)
committerMichael Howe <michael@michaelhowe.org>
Thu, 21 Dec 2017 18:59:45 +0000 (18:59 +0000)
It only tells us the state at the time of install, which isn't helpful
if you subsequently upgrade it.

debian/changelog
debian/postinst
debian/prerm

index ed040b817ed8effcee51949bc8c3b8894cfc8429..7aec330830fb6418818cb054806cc544b69a56e7 100644 (file)
@@ -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
index bd9d5d909a0ef5d55a78fa4d315a91b5b7e4c7d6..13065a6bdaf89c6733845b8e8bbce98f8f734440 100644 (file)
@@ -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#
index b028e1a8c264f81ca9d45aa9e870120bc3c4884c..e260e87be8ed71f068bf738e9fd79e53e174bfb0 100644 (file)
@@ -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#