You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
lua-ngcp-kamailio/debian/lua-ngcp-kamailio.postinst

24 lines
521 B

#! /bin/sh
set -e
case "$1" in
configure)
if service kamailio-proxy status >/dev/null 2>&1 ; then
echo "kamailio-proxy seems to be active, reloading app_lua"
ngcp-kamcmd proxy app_lua.reload 0 || RC=$?
echo "Kamailio proxy module 'app_lua' reloaded (exit code: ${RC:-0})"
fi
;;
abort-upgrade|abort-remove|abort-deconfigure)
;;
*)
echo "postinst called with unknown argument \`$1'" >&2
exit 1
;;
esac
#DEBHELPER#