mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
fix: Stop loading all oses when we have no db connection (#7003)
* fix: Stop loading all oses when we have no db connection * updated to use load_all_os() correctly
This commit is contained in:
committed by
Tony Murray
parent
feef5383f3
commit
08d3a267ad
@@ -90,7 +90,6 @@ if (module_selected('alerts', $init_modules)) {
|
||||
require_once $install_dir . '/includes/alerts.inc.php';
|
||||
}
|
||||
|
||||
|
||||
// variable definitions
|
||||
require $install_dir . '/includes/cisco-entities.php';
|
||||
require $install_dir . '/includes/vmware_guestid.inc.php';
|
||||
@@ -167,8 +166,11 @@ if (module_selected('web', $init_modules)) {
|
||||
$config['title_image'] = 'images/librenms_logo_'.$config['site_style'].'.svg';
|
||||
}
|
||||
require $install_dir . '/html/includes/vars.inc.php';
|
||||
|
||||
load_all_os(true);
|
||||
if (module_selected('nodb', $init_modules)) {
|
||||
load_all_os(false);
|
||||
} else {
|
||||
load_all_os(true);
|
||||
}
|
||||
}
|
||||
|
||||
$console_color = new Console_Color2();
|
||||
|
||||
Reference in New Issue
Block a user