
#! /bin/sh /usr/share/dpatch/dpatch-run
## 01_config.php.dpatch by  <seanius@debian.org>
##
## DP: modify the default config.php to include authentication info from
## DP: debian.php, which can be managed by debconf/ucf

@DPATCH@
Index: cacti-0.8.7~beta4/include/config.php
===================================================================
--- cacti-0.8.7~beta4.orig/include/config.php	2007-10-09 20:01:12.000000000 +0200
+++ cacti-0.8.7~beta4/include/config.php	2007-10-09 20:02:48.000000000 +0200
@@ -24,11 +24,7 @@
 
 /* make sure these values refect your actual database/host/user/password */
 $database_type = "mysql";
-$database_default = "cacti";
-$database_hostname = "localhost";
-$database_username = "cactiuser";
-$database_password = "cactiuser";
-$database_port = "3306";
+require('/etc/cacti/debian.php');
 
 /* Default session name - Session name must contain alpha characters */
 #$cacti_session_name = "Cacti";

