From 4e5cea1a23cc7bfde948b6ef25dfcbef32650f19 Mon Sep 17 00:00:00 2001 From: Michael Prokop Date: Wed, 22 Aug 2012 13:55:30 +0000 Subject: [PATCH] Provide postrm script lintian jenkins integration ftw \o/ Addresses https://jenkins.mgm.sipwise.com/job/rate-o-mat-binaries/architecture=amd64,label=cowbuilder/82/ From: Michael Prokop --- debian/ngcp-rate-o-mat.postrm | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 debian/ngcp-rate-o-mat.postrm diff --git a/debian/ngcp-rate-o-mat.postrm b/debian/ngcp-rate-o-mat.postrm new file mode 100755 index 0000000..0b56378 --- /dev/null +++ b/debian/ngcp-rate-o-mat.postrm @@ -0,0 +1,18 @@ +#!/bin/sh +# postrm script for ngcp-rate-o-mat + +set -e + +removal_wrapper() { + # remove the init script only on ce systems, as the + # the pro system handle it inside the monitoring/HA setup + if ! [ -x "$(which ngcp-check_active 2>/dev/null)" ]; then + update-rc.d ngcp-rate-o-mat remove >/dev/null + fi +} + +if [ "$1" = "purge" ] ; then + removal_wrapper +fi + +exit 0