]> git.pld-linux.org Git - packages/cacti.git/blame - cacti-config.patch
- up to 1.1.36
[packages/cacti.git] / cacti-config.patch
CommitLineData
caa81993
ER
1--- cacti-0.8.7b/include/global.php 2008-10-05 04:38:29.740276226 +0300
2+++ cacti-0.8.7g/include/global.php 2010-12-13 12:10:44.312310245 +0200
d848f153
AM
3@@ -64,10 +64,7 @@ $url_path = '/cacti/';
4 /* allow upto 5000 items to be selected */
81fd7803 5 ini_set('max_input_vars', '5000');
caa81993 6
d848f153
AM
7-/* Include configuration, or use the defaults */
8-if (file_exists(dirname(__FILE__) . '/config.php')) {
9- include(dirname(__FILE__) . '/config.php');
10-}
caa81993
ER
11+require '/etc/webapps/cacti/config.php';
12
81fd7803
AM
13 if (isset($config['cacti_version'])) {
14 die('Invalid include/config.php file detected.');
15@@ -139,7 +139,8 @@ if ($config['cacti_server_os'] == 'win32
16 $config['library_path'] = preg_replace("/(.*[\/])include/", "\\1lib", dirname(__FILE__));
17 }
18 $config['include_path'] = dirname(__FILE__);
19-$config['rra_path'] = $config['base_path'] . '/rra';
219fa6fd 20+$config["rra_path"] = '/var/lib/cacti/rra';
81fd7803 21+$config["path_cactilog"] = '/var/log/cacti/cacti.log';
6d075ceb 22
81fd7803
AM
23 /* for multiple pollers, we need to know this location */
24 if (!isset($scripts_path)) {
caa81993
ER
25--- cacti-0.8.7g/include/config.php~ 2010-12-13 12:15:08.000000000 +0200
26+++ cacti-0.8.7g/include/config.php 2010-12-13 12:16:09.275611204 +0200
81fd7803
AM
27@@ -27,8 +27,8 @@
28 $database_type = 'mysql';
29 $database_default = 'cacti';
30 $database_hostname = 'localhost';
31-$database_username = 'cactiuser';
32-$database_password = 'cactiuser';
33+$database_username = 'mysql';
34+$database_password = '';
35 $database_port = '3306';
36 $database_ssl = false;
37
38--- cacti/poller.php~ 2017-08-28 05:48:36.000000000 +0200
39+++ cacti/poller.php 2017-08-31 08:39:19.780902180 +0200
40@@ -61,7 +61,7 @@ if (!isset($_SERVER['argv'][0]) || isset
6d075ceb
ER
41 }
42
156a14ed 43 /* start initialization section */
81fd7803 44-include(dirname(__FILE__) . '/include/global.php');
156a14ed 45+require "/usr/share/cacti/include/global.php";
81fd7803
AM
46 include_once($config['base_path'] . '/lib/poller.php');
47 include_once($config['base_path'] . '/lib/data_query.php');
48 include_once($config['base_path'] . '/lib/rrd.php');
49
This page took 0.08563 seconds and 4 git commands to generate.