Skip to content

Commit

Permalink
fix: temp dir is different per user now to provide permission issues
Browse files Browse the repository at this point in the history
  • Loading branch information
stmh committed Oct 25, 2024
1 parent 2d230cb commit 5f44bfe
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/AppKernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,22 @@ public function registerContainerConfiguration(LoaderInterface $loader)
*/
public function getCacheDir()
{
return sys_get_temp_dir() . '/phabalicious' . Utilities::FALLBACK_VERSION . md5(self::class);

$dir = implode('-', [
sys_get_temp_dir() . '/phabalicious',
Utilities::FALLBACK_VERSION,
getmyuid() ,
md5(self::class)
]);

return $dir;
}
/**
* Unique logs path for this Kernel
*/
public function getLogDir(): string
{
return sys_get_temp_dir() . '/phabalicious' . Utilities::FALLBACK_VERSION . md5(self::class);
return $this->getCacheDir();
}

protected function build(ContainerBuilder $containerBuilder)
Expand Down

0 comments on commit 5f44bfe

Please sign in to comment.