MT#5301 fix error when upgrading from 4.0.X.

New templates needs to be applied in order to get kamailio working
mr3.2.1
Victor Seva 13 years ago
parent 94e2840402
commit 4ee1c6a799

@ -22,6 +22,15 @@ case "$1" in
fi
echo "Please take a look at kamailio.README.debian about how to upgrade your configuration."
fi
elif dpkg --compare-versions "$2" "<" "4.1.0"; then
# sync_branch is obsolete
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 deactivate. Run ngcpcfg apply to reactivate."
fi
;;

Loading…
Cancel
Save