Imported Debian patch 0.8.7g-2.1
[debian/cacti] / debian / patches / 01_config.php.patch
1 #! /bin/sh /usr/share/dpatch/dpatch-run
2 ## 01_config.php.dpatch by  <seanius@debian.org>
3 ##
4 ## DP: modify the default config.php to include authentication info from
5 ## DP: debian.php, which can be managed by debconf/ucf
6
7 @DPATCH@
8 Index: cacti-0.8.7~beta4/include/config.php
9 ===================================================================
10 --- cacti-0.8.7~beta4.orig/include/config.php   2007-10-09 20:01:12.000000000 +0200
11 +++ cacti-0.8.7~beta4/include/config.php        2007-10-09 20:02:48.000000000 +0200
12 @@ -24,11 +24,7 @@
13  
14  /* make sure these values refect your actual database/host/user/password */
15  $database_type = "mysql";
16 -$database_default = "cacti";
17 -$database_hostname = "localhost";
18 -$database_username = "cactiuser";
19 -$database_password = "cactiuser";
20 -$database_port = "3306";
21 +require('/etc/cacti/debian.php');
22  
23  /* Default session name - Session name must contain alpha characters */
24  #$cacti_session_name = "Cacti";