mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Offer opt in to usage and error reporting during install (#13906)
and on the about page
This commit is contained in:
@@ -25,6 +25,7 @@
|
||||
|
||||
namespace LibreNMS;
|
||||
|
||||
use App\Models\Callback;
|
||||
use App\Models\GraphType;
|
||||
use Exception;
|
||||
use Illuminate\Database\QueryException;
|
||||
@@ -472,6 +473,9 @@ class Config
|
||||
if (! self::has('snmp.unescape')) {
|
||||
self::persist('snmp.unescape', version_compare(Version::get()->netSnmp(), '5.8.0', '<'));
|
||||
}
|
||||
if (! self::has('reporting.usage')) {
|
||||
self::persist('reporting.usage', (bool) Callback::get('enabled'));
|
||||
}
|
||||
|
||||
self::populateTime();
|
||||
|
||||
|
Reference in New Issue
Block a user