mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Install: Validate database before migrating (#12867)
* Validate database during install Needed to remove usages of legacy functions in the validation * Fix output, restore real versions
This commit is contained in:
@@ -24,6 +24,7 @@
|
||||
|
||||
namespace LibreNMS;
|
||||
|
||||
use App;
|
||||
use Illuminate\Support\Str;
|
||||
use LibreNMS\Interfaces\ValidationGroup;
|
||||
use ReflectionClass;
|
||||
@@ -73,14 +74,14 @@ class Validator
|
||||
}
|
||||
|
||||
if ((empty($validation_groups) && $group->isDefault()) || in_array($group_name, $validation_groups)) {
|
||||
if ($print_group_status && isCli()) {
|
||||
if ($print_group_status && App::runningInConsole()) {
|
||||
echo "Checking $group_name:";
|
||||
}
|
||||
|
||||
/** @var ValidationGroup $group */
|
||||
$group->validate($this);
|
||||
|
||||
if (isCli()) {
|
||||
if (App::runningInConsole()) {
|
||||
if ($print_group_status) {
|
||||
$status = ValidationResult::getStatusText($this->getGroupStatus($group_name));
|
||||
c_echo(" $status\n");
|
||||
|
Reference in New Issue
Block a user