mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-19 10:53:31 +00:00
Fix #7546
This commit is contained in:
@@ -125,16 +125,26 @@ class DebugController extends Controller
|
|||||||
$baseBuildDate = '(unknown)';
|
$baseBuildDate = '(unknown)';
|
||||||
$expectedDBversion = config('firefly.db_version');
|
$expectedDBversion = config('firefly.db_version');
|
||||||
$foundDBversion = FireflyConfig::get('db_version', 1)->data;
|
$foundDBversion = FireflyConfig::get('db_version', 1)->data;
|
||||||
|
try {
|
||||||
if (file_exists('/var/www/counter-main.txt')) {
|
if (file_exists('/var/www/counter-main.txt')) {
|
||||||
$buildNr = trim(file_get_contents('/var/www/counter-main.txt'));
|
$buildNr = trim(file_get_contents('/var/www/counter-main.txt'));
|
||||||
}
|
}
|
||||||
|
} catch (Exception $e) { // generic catch for open basedir.
|
||||||
|
Log::debug('Could not check counter.');
|
||||||
|
Log::warning($e->getMessage());
|
||||||
|
}
|
||||||
|
try {
|
||||||
if (file_exists('/var/www/build-date-main.txt')) {
|
if (file_exists('/var/www/build-date-main.txt')) {
|
||||||
$buildDate = trim(file_get_contents('/var/www/build-date-main.txt'));
|
$buildDate = trim(file_get_contents('/var/www/build-date-main.txt'));
|
||||||
}
|
}
|
||||||
if('' !== (string)env('BASE_IMAGE_BUILD')) {
|
} catch (Exception $e) { // generic catch for open basedir.
|
||||||
|
Log::debug('Could not check date.');
|
||||||
|
Log::warning($e->getMessage());
|
||||||
|
}
|
||||||
|
if ('' !== (string)env('BASE_IMAGE_BUILD')) {
|
||||||
$baseBuildNr = env('BASE_IMAGE_BUILD');
|
$baseBuildNr = env('BASE_IMAGE_BUILD');
|
||||||
}
|
}
|
||||||
if('' !== (string)env('BASE_IMAGE_DATE')) {
|
if ('' !== (string)env('BASE_IMAGE_DATE')) {
|
||||||
$baseBuildDate = env('BASE_IMAGE_DATE');
|
$baseBuildDate = env('BASE_IMAGE_DATE');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user