X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=debian%2Fcollectd.postrm;h=84b838677112dbf2f0c38d65943446f60f3b3063;hb=72fefab2a6bf8111fb68816a1c1da30afa5c2d92;hp=2ea2e74865b35d5e1ffdcee6a6521b48673d8179;hpb=98f5987a9f11976a08d0efd648256fdfa2f0640d;p=collectd.git diff --git a/debian/collectd.postrm b/debian/collectd.postrm index 2ea2e748..84b83867 100755 --- a/debian/collectd.postrm +++ b/debian/collectd.postrm @@ -1,4 +1,4 @@ -#! /bin/sh +#!/bin/bash # postrm script for collectd # # see: dh_installdeb(1) @@ -19,18 +19,19 @@ set -e case "$1" in - purge) - rm -rf /var/lib/collectd - rm -rf /etc/collectd - rm -f /etc/collectd.conf - ;; - - remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) - ;; - - *) + purge) + rm -rf /var/lib/collectd + rm -rf /etc/collectd + ;; + + remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) + ;; + + *) echo "postrm called with unknown argument \`$1'" >&2 exit 1 + ;; + esac # dh_installdeb will replace this with shell code automatically @@ -39,3 +40,4 @@ esac #DEBHELPER# exit 0 +