Files
ofbiz-framework/debian/ofbiz-applications.postinst
T
Adam Heath 7f7255ecf0 Remove ofbiz-upgrade trigger support; all packages now activate
ofbiz-install trigger, and each package must stop ofbiz itself.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@766227 13f79535-47bb-0310-9956-ffa450edef68
2009-04-18 06:05:15 +00:00

21 lines
375 B
Bash

#!/bin/sh
. /usr/share/debconf/confmodule
ofbiz_init_invoke() {
if [ -x "/etc/init.d/ofbiz" ]; then
if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then
invoke-rc.d ofbiz $1 || exit $?
else
/etc/init.d/ofbiz $1 || exit $?
fi
fi
}
case "$1" in
(configure|reconfigure)
ofbiz_init_invoke stop
dpkg-trigger --no-await ofbiz-install
;;
esac
#DEBHELPER#
db_stop