1 #!/bin/sh
2 set -e
4 . /usr/share/debconf/confmodule
6 tmp=`mktemp`
8 if [ -f /etc/dbconfig-common/ndoutils-mysql.conf ] ; then
9 dbconfig-load-include -f sh \
10 -udbc_dbuser -pdbc_dbpass -ddbc_dbname -sdbc_dbserver -Pdbc_dbport \
11 /etc/dbconfig-common/ndoutils-mysql.conf > $tmp
12 . $tmp
13 if [ -f /usr/share/dbconfig-common/dpkg/frontend.config.mysql ]; then
14 . /usr/share/dbconfig-common/dpkg/frontend.config.mysql
15 dbc_go nagvis $@
16 fi
17 db_stop
18 fi
20 rm -f $tmp