blob: 4deac0469724636271549d707f1822a2a6b931dc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
$NetBSD: patch-lib_rrd.php,v 1.4 2019/04/29 16:09:05 hauke Exp $
Make rrd directory configurable by package variable
--- lib/rrd.php.orig 2019-03-30 23:40:23.000000000 +0000
+++ lib/rrd.php
@@ -3425,7 +3425,7 @@ function rrdtool_parse_error($string) {
$rra_path = "";
} else {
if (stripos($filename, $config['base_path']) >= 0) {
- $rra_file = str_replace($config['base_path'] . '/rra/', '', $filename);
+ $rra_file = str_replace('@CACTI_RRADIR@', '', $filename);
$rra_name = basename($rra_file);
$rra_path = dirname($rra_file);
} else {
|