Code

Rework package configuration
[pkg-nagvis.git] / debian / postinst
index 925277a44fd87351bea7fb709317e9a509fa0fae..0a2093cb2106fa59fcd705e1c36f5503e048e42c 100644 (file)
@@ -6,13 +6,6 @@
 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/nagvis.ini.php'
-       dbc_generate_include_owner='www-data:www-data'
-       dbc_generate_include_args='--ucf -C\; -o template_infile=/usr/share/nagvis/debian/nagvis.ini.php-sample'
-       dbc_go nagvis $@
-fi
 
 # summary of how this script can be called:
 #        * <postinst> `configure' <most-recently-configured-version>
@@ -58,6 +51,9 @@ case "$1" in
        #       ln -s /etc/nagvis/apache.conf /etc/apache2/conf.d/nagvis.conf
        #fi
 
+       monitoring=$(db_get nagvis/monitoring_system)
+       echo "Will configure nagvis to use $monitoring"
+
     ;;
 
     abort-upgrade|abort-remove|abort-deconfigure)