diff --git a/debian/ngcp-prosody-modules.postinst b/debian/ngcp-prosody-modules.postinst deleted file mode 100644 index 9c7c712..0000000 --- a/debian/ngcp-prosody-modules.postinst +++ /dev/null @@ -1,43 +0,0 @@ -#!/bin/sh -if [ -r /etc/default/ngcp-roles ] ; then - . /etc/default/ngcp-roles -else - NGCP_IS_PROXY=no -fi - -case "$1" in - configure) - if [ -x "/usr/sbin/ngcp-check_active" ]; then - /usr/sbin/ngcp-check_active -q - status=$? - case "${status}" in - 0|3) - echo "Active node or transition." - ;; - *) - echo "Ignored start action in inactive node ($status)" - exit 0 - ;; - esac - fi - if [ -x "/etc/init.d/prosody" ] && [ "$NGCP_IS_PROXY" = "yes" ]; then - echo "Restarting prosody service" - if [ -x "$(which invoke-rc.d 2>/dev/null)" ]; then - invoke-rc.d prosody restart || true - else - /etc/init.d/prosody restart || true - fi - elif [ "$NGCP_IS_PROXY" != "yes" ]; then - echo "prosody restart skipped, no role 'proxy' assigned to node." - fi - ;; - abort-upgrade|abort-remove|abort-deconfigure) - exit 0 - ;; - *) - echo "postinst called with unknown argument \`$1'" >&2 - exit 1 - ;; -esac - -#DEBHELPER#