mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
no need to warn if config.php is missing
This commit is contained in:
@@ -83,10 +83,8 @@ register_shutdown_function(function () {
|
||||
|
||||
$pre_checks_failed = false;
|
||||
|
||||
// critical config.php checks
|
||||
if (!file_exists('config.php')) {
|
||||
print_fail('config.php does not exist, please copy config.php.default to config.php');
|
||||
} else {
|
||||
// config.php checks
|
||||
if (file_exists('config.php')) {
|
||||
$syntax_check = `php -ln config.php`;
|
||||
if (strpos($syntax_check, 'No syntax errors detected') === false) {
|
||||
print_fail('Syntax error in config.php');
|
||||
|
Reference in New Issue
Block a user