Files
librenms-librenms/config_to_json.php
T

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

18 lines
268 B
PHP
Raw 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()) {
echo Config::toJson();
2013-11-03 15:03:57 -08:00
}