mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
feature: Added rrdtool version check to compare installed version with defined version (#6381)
* feature: Added rrdtool version check to compare installed version with defined version * update to check config is not > than installed ver
This commit is contained in:
committed by
Tony Murray
parent
788e5fd75c
commit
5ce9b6b2e8
@@ -333,6 +333,11 @@ foreach ($bins as $bin) {
|
||||
}
|
||||
}
|
||||
|
||||
// Check that rrdtool config version is what we see
|
||||
if (isset($config['rrdtool_version']) && (version_compare($config['rrdtool_version'], $versions['rrdtool_ver'], '>'))) {
|
||||
print_fail('The rrdtool version you have specified is newer than what is installed.', "Either comment out \$config['rrdtool_version'] = {$config['rrdtool_version']}; or set \$config['rrdtool_version'] = {$versions['rrdtool_ver']};");
|
||||
}
|
||||
|
||||
$disabled_functions = explode(',', ini_get('disable_functions'));
|
||||
$required_functions = array('exec','passthru','shell_exec','escapeshellarg','escapeshellcmd','proc_close','proc_open','popen');
|
||||
foreach ($required_functions as $function) {
|
||||
|
Reference in New Issue
Block a user