Check if all dependencies are installed (#639)

* Added check if all dependencies are installed and config.php/config-dist.php exists

* Also check for php modules

* Uncomment code that was accidentally disabled for debug purposes
This commit is contained in:
Marc Ole Bulling
2020-03-22 16:55:23 +00:00
committed by GitHub
parent dcfd9d848d
commit 3fc14db5d5
2 changed files with 60 additions and 0 deletions

View File

@@ -1,3 +1,13 @@
<?php
require_once __DIR__ . '/../helpers/PrerequisiteChecker.php';
try {
(new PrerequisiteChecker)->checkRequirements();
} catch (ERequirementNotMet $e) {
die("Unable to run grocy: " . $e->getMessage());
}
require_once __DIR__ . '/../app.php';
?>