Add buildnr to debug form.

This commit is contained in:
James Cole
2021-12-24 10:51:08 +01:00
parent 47870cd50c
commit f7125d6198
2 changed files with 12 additions and 0 deletions

View File

@@ -144,6 +144,15 @@ class DebugController extends Controller
$bcscale = bcscale();
$layout = env('FIREFLY_III_LAYOUT');
$tz = env('TZ');
$buildNr = '(unknown)';
$buildDate = '(unknown)';
if (file_exists('/var/www/counter-main.txt')) {
$buildNr = file_get_contents('/var/www/counter-main.txt');
}
if (file_exists('/var/www/build-date-main.txt')) {
$buildDate = file_get_contents('/var/www/build-date-main.txt');
}
// expected + found DB version:
$expectedDBversion = config('firefly.db_version');
@@ -206,6 +215,8 @@ class DebugController extends Controller
'drivers',
'currentDriver',
'loginProvider',
'buildNr',
'buildDate',
'bcscale',
'layout',
'userAgent',

View File

@@ -17,6 +17,7 @@ Debug information generated at {{ now }} for Firefly III version **{{ FF_VERSION
| --- | --- |
| Firefly III | {{ FF_VERSION }} |
| Firefly III API | {{ config('firefly.api_version') }} |
| Build | {{ buildNr}}, {{ buildDate }} |
| PHP | {{ phpVersion }} |
| Host | {{ phpOs }} |