Provide postrm script

From: Michael Prokop <mprokop@sipwise.com>
1.5^2
Michael Prokop 14 years ago
parent f4cf13c3d4
commit dff7ab9e66

@ -0,0 +1,18 @@
#!/bin/sh
# postrm script for ngcp-mediator
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 mediator remove >/dev/null
fi
}
if [ "$1" = "purge" ] ; then
removal_wrapper
fi
exit 0
Loading…
Cancel
Save