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
21 lines
375 B
Bash
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
|