mirror of
https://github.com/grocy/grocy.git
synced 2025-04-29 01:32:38 +00:00
Auto create the data/viewcache folder if it doesn't exist (however)
This commit is contained in:
parent
4a8d4120e1
commit
ced709bbf9
6
app.php
6
app.php
@ -42,6 +42,12 @@ catch (EInvalidConfig $ex)
|
||||
exit('Invalid setting in config.php: ' . $ex->getMessage());
|
||||
}
|
||||
|
||||
// Create data/viewcache folder if it doesn't exist
|
||||
if (!file_exists(GROCY_DATAPATH . '/viewcache'))
|
||||
{
|
||||
mkdir(GROCY_DATAPATH . '/viewcache');
|
||||
}
|
||||
|
||||
// Setup base application
|
||||
AppFactory::setContainer(new DI\Container());
|
||||
$app = AppFactory::create();
|
||||
|
Loading…
x
Reference in New Issue
Block a user