Code

git-svn-id: svn://svn.debian.org/svn/pkg-nagios/nagvis/trunk@1397 98d490a6-b407-0410...
[pkg-nagvis.git] / debian / postinst
index d33d9379297e1b9419a0cfa1cad43cf814e7430e..58ed0faa7d04216b519d977295b51db16ab09afb 100644 (file)
@@ -8,12 +8,11 @@ set -e
 . /usr/share/debconf/confmodule
 if [ -f /usr/share/dbconfig-common/dpkg/frontend.postinst.mysql ]; then
        . /usr/share/dbconfig-common/dpkg/frontend.postinst.mysql
-       dbc_generate_include='template:/etc/nagvis/config.ini.php'
+       dbc_generate_include='template:/etc/nagvis/nagvis.ini.php'
        dbc_generate_include_owner='www-data:www-data'
-       dbc_generate_include_args='--ucf -o template_infile=/usr/share/nagvis/debian/config.ini.php.dist'
+       dbc_generate_include_args='--ucf -C\; -o template_infile=/usr/share/nagvis/debian/nagvis.ini.php-sample'
        dbc_go nagvis $@
 fi
-db_stop
 
 # summary of how this script can be called:
 #        * <postinst> `configure' <most-recently-configured-version>
@@ -66,6 +65,7 @@ case "$1" in
     ;;
 esac
 
+db_stop
 # dh_installdeb will replace this with shell code automatically
 # generated by other debhelper scripts.