diff options
author | Niels Thykier <niels@thykier.net> | 2015-11-26 18:02:31 +0100 |
---|---|---|
committer | Niels Thykier <niels@thykier.net> | 2015-11-26 18:02:31 +0100 |
commit | 02cd0cec1c05ee09697cdbf0800f1aca6b1c79d4 (patch) | |
tree | 12f05587c9117c9688c416c8a27f9aa1b8e95141 /autoscripts | |
parent | 8994b09c30cf32a5c1e84d6d94a548ad8b5de089 (diff) |
Revert "postrm-init: Tweak to avoid triggering a lintian warning"
This reverts commit 2059ab8e431cd7ba8392f79c70950e44ce04dc64.
Diffstat (limited to 'autoscripts')
-rw-r--r-- | autoscripts/postrm-init | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/autoscripts/postrm-init b/autoscripts/postrm-init index 978bcf57..9881b1cf 100644 --- a/autoscripts/postrm-init +++ b/autoscripts/postrm-init @@ -1,13 +1,12 @@ -if [ "$1" = "remove" ] || [ "$1" = "purge" ] ; then - _action=remove - if [ "$1" = "remove" ] ; then - # Attempt to disable but ignore failures as it is not - # required (and the script must be a able to handle - # being called while the package is removed, but not - # yet purged) - _action=disable - fi - update-rc.d #SCRIPT# ${_action} >/dev/null +if [ "$1" = "remove" ] ; then + # Attempt to disable but ignore failures as it is not + # required (and the script must be a able to handle + # being called while the package is removed, but not + # yet purged) + update-rc.d #SCRIPT# disable >/dev/null || true +fi +if [ "$1" = "purge" ] ; then + update-rc.d #SCRIPT# remove >/dev/null fi |