1 diff --git a/app/AppKernel.php b/app/AppKernel.php
2 index 61b734e06..d25d1aaa3 100644
3 --- a/app/AppKernel.php
4 +++ b/app/AppKernel.php
5 @@ -62,14 +62,19 @@ class AppKernel extends Kernel
9 + public function getProjectDir()
11 + return getenv('WALLABAG_DATA') ?: dirname(__DIR__);
14 public function getCacheDir()
16 - return dirname(__DIR__) . '/var/cache/' . $this->getEnvironment();
17 + return $this->getProjectDir() . '/var/cache/' . $this->getEnvironment();
20 public function getLogDir()
22 - return dirname(__DIR__) . '/var/logs';
23 + return $this->getProjectDir() . '/var/logs';
26 public function registerContainerConfiguration(LoaderInterface $loader)