fix: Ensure rrdtool web settings aren't overwrote by defaults (#6698)

* fix for web settings

* revert db config

* revert description

* ensure rrdtool path is set
This commit is contained in:
crcro
2017-05-30 21:44:40 +03:00
committed by Neil Lathwood
parent 48c5e50616
commit 5af3048a76
3 changed files with 8 additions and 3 deletions

View File

@@ -61,7 +61,6 @@ $rrdtool_conf = array(
),
array('name' => 'rrd.heartbeat',
'descr' => 'Change the rrd heartbeat value (default 600)',
'type' => 'text',
),
);

View File

@@ -42,8 +42,6 @@ $config['db_socket'] = null;
$config['own_hostname'] = 'localhost';
// Location of executables
$config['rrdtool'] = '/usr/bin/rrdtool';
$config['rrdtool_version'] = 1.4; // Doesn't need to contain minor numbers.
$config['fping'] = '/usr/bin/fping';
$config['fping6'] = 'fping6';
$config['fping_options']['retries'] = 3;

View File

@@ -26,3 +26,11 @@
if (empty($config['email_from'])) {
$config['email_from'] = '"' . $config['project_name'] . '" <' . $config['email_user'] . '@' . php_uname('n') . '>';
}
// We need rrdtool so ensure it's set
if (empty($config['rrdtool'])) {
$config['rrdtool'] = '/usr/bin/rrdtool';
}
if (empty($config['rrdtool_verion'])) {
$config['rrdtool_version'] = 1.4;
}