mirror of
https://github.com/grocy/grocy.git
synced 2025-08-20 04:12:59 +00:00
Fixed pre requisite checker paths (fixes #748)
This commit is contained in:
@@ -1,5 +1,18 @@
|
||||
<?php
|
||||
|
||||
// Definitions for embedded mode
|
||||
if (file_exists(__DIR__ . '/../embedded.txt'))
|
||||
{
|
||||
define('GROCY_IS_EMBEDDED_INSTALL', true);
|
||||
define('GROCY_DATAPATH', file_get_contents(__DIR__ . '/../embedded.txt'));
|
||||
define('GROCY_USER_ID', 1);
|
||||
}
|
||||
else
|
||||
{
|
||||
define('GROCY_IS_EMBEDDED_INSTALL', false);
|
||||
define('GROCY_DATAPATH', __DIR__ . '/../data');
|
||||
}
|
||||
|
||||
require_once __DIR__ . '/../helpers/PrerequisiteChecker.php';
|
||||
|
||||
try
|
||||
|
Reference in New Issue
Block a user