mirror of
https://github.com/librenms/librenms.git
synced 2024-09-21 10:28:13 +00:00
![Tony Murray](/assets/img/avatar_default.png)
* Validate database during install Needed to remove usages of legacy functions in the validation * Fix output, restore real versions
21 lines
368 B
PHP
Executable File
21 lines
368 B
PHP
Executable File
#!/usr/bin/env php
|
|
<?php
|
|
|
|
/*
|
|
* Configuration to JSON converter
|
|
* Written by Job Snijders <job@instituut.net>
|
|
*
|
|
*/
|
|
|
|
use LibreNMS\Config;
|
|
|
|
$init_modules = ['nodb'];
|
|
require __DIR__ . '/includes/init.php';
|
|
|
|
if (App::runningInConsole()) {
|
|
// fill in db variables for legacy external scripts
|
|
Config::populateLegacyDbCredentials();
|
|
|
|
echo Config::toJson();
|
|
}
|