mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Automatically set rrdtool_version once (#13327)
* Automatically set rrdtool_version once on first run if not already set * In about controller too
This commit is contained in:
@@ -30,6 +30,7 @@ use Exception;
|
||||
use Illuminate\Database\QueryException;
|
||||
use Illuminate\Support\Arr;
|
||||
use Illuminate\Support\Str;
|
||||
use LibreNMS\Data\Store\Rrd;
|
||||
use LibreNMS\DB\Eloquent;
|
||||
use LibreNMS\Util\Debug;
|
||||
use Log;
|
||||
@@ -457,6 +458,10 @@ class Config
|
||||
}
|
||||
}
|
||||
|
||||
if (! self::has('rrdtool_version')) {
|
||||
self::persist('rrdtool_version', Rrd::version());
|
||||
}
|
||||
|
||||
self::populateTime();
|
||||
|
||||
// populate legacy DB credentials, just in case something external uses them. Maybe remove this later
|
||||
|
Reference in New Issue
Block a user