Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
27 lines
770 B
Diff
27 lines
770 B
Diff
diff --git a/app/AppKernel.php b/app/AppKernel.php
|
|
index 61b734e06..d25d1aaa3 100644
|
|
--- a/app/AppKernel.php
|
|
+++ b/app/AppKernel.php
|
|
@@ -62,14 +62,19 @@ class AppKernel extends Kernel
|
|
return $bundles;
|
|
}
|
|
|
|
+ public function getProjectDir()
|
|
+ {
|
|
+ return getenv('WALLABAG_DATA') ?: dirname(__DIR__);
|
|
+ }
|
|
+
|
|
public function getCacheDir()
|
|
{
|
|
- return dirname(__DIR__) . '/var/cache/' . $this->getEnvironment();
|
|
+ return $this->getProjectDir() . '/var/cache/' . $this->getEnvironment();
|
|
}
|
|
|
|
public function getLogDir()
|
|
{
|
|
- return dirname(__DIR__) . '/var/logs';
|
|
+ return $this->getProjectDir() . '/var/logs';
|
|
}
|
|
|
|
public function registerContainerConfiguration(LoaderInterface $loader)
|