Sophie

Sophie

distrib > Mandriva > 2009.0 > x86_64 > by-pkgid > b9d53b6af54a617060bdcad67e0e4755 > files > 2

cacti-0.8.7e-6mdv2009.0.src.rpm

diff -Naur -x '*~' cacti-0.8.7e/include/config.php cacti-0.8.7e-fhs/include/config.php
--- cacti-0.8.7e/include/config.php	2009-06-28 18:07:11.000000000 +0200
+++ cacti-0.8.7e-fhs/include/config.php	2009-07-25 17:07:58.000000000 +0200
@@ -32,5 +32,8 @@
 
 /* Default session name - Session name must contain alpha characters */
 #$cacti_session_name = "Cacti";
+$config["library_path"] = '/usr/share/cacti/lib';
+$config["rra_path"] = '/var/lib/cacti';
+$config['url_path'] = '/cacti/';
 
 ?>
diff -Naur -x '*~' cacti-0.8.7e/include/global_settings.php cacti-0.8.7e-fhs/include/global_settings.php
--- cacti-0.8.7e/include/global_settings.php	2009-06-28 18:07:11.000000000 +0200
+++ cacti-0.8.7e-fhs/include/global_settings.php	2009-07-25 17:07:47.000000000 +0200
@@ -96,7 +96,7 @@
 			"friendly_name" => "Cacti Log File Path",
 			"description" => "The path to your Cacti log file (if blank, defaults to <path_cacti>/log/cacti.log)",
 			"method" => "filepath",
-			"default" => $config["base_path"] . "/log/cacti.log",
+			"default" => "/var/log/cacti/cacti.log",
 			"max_length" => "255"
 			),
 		"pollerpaths_header" => array(
diff -Naur -x '*~' cacti-0.8.7e/install/index.php cacti-0.8.7e-fhs/install/index.php
--- cacti-0.8.7e/install/index.php	2009-06-28 18:07:11.000000000 +0200
+++ cacti-0.8.7e-fhs/install/index.php	2009-07-25 17:07:10.000000000 +0200
@@ -264,7 +264,7 @@
 if (config_value_exists("path_cactilog")) {
 	$input["path_cactilog"]["default"] = read_config_option("path_cactilog");
 } else {
-	$input["path_cactilog"]["default"] = $config["base_path"] . "/log/cacti.log";
+	$input["path_cactilog"]["default"] = "/var/log/cacti/cacti.log";
 }
 
 /* SNMP Version */