diff --git a/debian/postinst b/debian/postinst
index 924f94b48b31524154817db2fecfe729f5239b6f..58ed0faa7d04216b519d977295b51db16ab09afb 100644 (file)
--- a/debian/postinst
+++ b/debian/postinst
. /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>
test -f $f && setperm www-data www-data 0644 $f
test -d $f && setperm www-data www-data 0755 $f
done
- setperm www-data www-data 0775 /usr/share/nagvis/htdocs/nagvis/images/maps
setperm www-data www-data 0775 /usr/share/nagvis/htdocs/nagvis/etc/maps
ucf /usr/share/nagvis/debian/apache.conf /etc/nagvis/apache.conf
+ #if ! [ -e /etc/apache2/conf.d/nagvis.conf ]; then
+ # ln -s /etc/nagvis/apache.conf /etc/apache2/conf.d/nagvis.conf
+ #fi
+
;;
abort-upgrade|abort-remove|abort-deconfigure)
;;
esac
+db_stop
# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.