2014-12-07 00:50:13 +08:00
|
|
|
#!/bin/sh
|
|
|
|
# prerm script for zoneminder
|
|
|
|
|
2014-12-12 20:04:17 +08:00
|
|
|
set -e
|
2014-12-07 00:50:13 +08:00
|
|
|
|
2014-12-10 23:11:56 +08:00
|
|
|
# Source the debconf stuff if file exists
|
2014-12-07 00:50:13 +08:00
|
|
|
if [ -f /usr/share/debconf/confmodule ]; then
|
|
|
|
. /usr/share/debconf/confmodule
|
|
|
|
fi
|
|
|
|
|
2014-12-10 23:11:56 +08:00
|
|
|
# If dbconfig-common is installed and has been used by zoneminder
|
|
|
|
if [ -f /usr/share/dbconfig-common/dpkg/prerm ] \
|
|
|
|
&& [ -f /etc/dbconfig-common/zoneminder.conf ]; then
|
|
|
|
# Source the dbconfig stuff
|
2014-12-07 00:50:13 +08:00
|
|
|
. /usr/share/dbconfig-common/dpkg/prerm
|
2014-12-10 23:11:56 +08:00
|
|
|
# Ask the user what do to with dbconfig before removing the package
|
2014-12-07 00:50:13 +08:00
|
|
|
dbc_go zoneminder $@
|
|
|
|
fi
|
|
|
|
|
|
|
|
# #DEBHELPER#
|
|
|
|
|
|
|
|
exit 0
|