mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
21 lines
352 B
PHP
21 lines
352 B
PHP
#!/usr/bin/env php
|
|||
<?php
|
|||
|
|
|
||
/*
|
|||
|
|
* Configuration to JSON converter
|
||
|
|
* Written by Job Snijders <[email protected]>
|
||
|
|
*
|
||
|
|
*/
|
||
|
|||
use LibreNMS\Config;
|
|||
|
|
|
||
$init_modules = ['nodb'];
|
|||
require __DIR__ . '/includes/init.php';
|
|||
|
|||
if (isCli()) {
|
|||
// fill in db variables for legacy external scripts
|
|||
|
|
Config::populateLegacyDbCredentials();
|
||
|
|
|
||
echo Config::toJson();
|
|||
}
|