Files

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

21 lines
368 B
PHP
Raw Permalink Normal View History

#!/usr/bin/env php
2013-11-03 15:03:57 -08:00
<?php
/*
* Configuration to JSON converter
* Written by Job Snijders <job@instituut.net>
*
*/
2013-11-03 15:03:57 -08:00
use LibreNMS\Config;
$init_modules = ['nodb'];
require __DIR__ . '/includes/init.php';
2013-11-03 15:03:57 -08:00
if (App::runningInConsole()) {
2019-05-22 13:31:24 -05:00
// fill in db variables for legacy external scripts
Config::populateLegacyDbCredentials();
echo Config::toJson();
2013-11-03 15:03:57 -08:00
}