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.
kamailio/debian/ngcp-kamailio.preinst

28 lines
604 B

#!/bin/sh
set -e
case "$1" in
install|upgrade)
if [ -f /etc/default/kamailio-lb ]; then
sed -e 's/RUN_KAMAILIO=yes/RUN_KAMAILIO=no/' \
-i /etc/default/kamailio-lb
fi
if [ -f /etc/default/kamailio-proxy ]; then
sed -e 's/RUN_KAMAILIO=yes/RUN_KAMAILIO=no/' \
-i /etc/default/kamailio-proxy
fi
echo "kamailio disabled. Run ngcpcfg apply to enable."
;;
abort-upgrade)
;;
*)
echo "preinst called with unknown argument \`$1'" >&2
exit 1
;;
esac
#DEBHELPER#