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:
Tony Murray
2021-10-04 16:05:42 -05:00
committed by GitHub
parent 681508f45b
commit b5b532fbc5
5 changed files with 46 additions and 19 deletions

View File

@@ -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