blob: acbc351fb55b4c345ec8a8c11d25def01e590c0d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
$NetBSD: patch-lib_functions.php,v 1.1 2019/04/29 16:09:05 hauke Exp $
Make log directory configurable by package variable
--- lib/functions.php.orig 2019-03-30 23:40:23.000000000 +0000
+++ lib/functions.php
@@ -832,7 +832,7 @@ function cacti_log_file() {
global $config;
$logfile = read_config_option('path_cactilog');
if ($logfile == '') {
- $logfile = $config['base_path'] . '/log/cacti.log';
+ $logfile = '@CACTI_LOGDIR@' . '/cacti.log';
}
$config['log_path'] = $logfile;
return $logfile;
|