From 0ba60d4c911fcc1f01d6952d88b103297ed9a204 Mon Sep 17 00:00:00 2001 From: Lukas Drahy Date: Mon, 10 Feb 2020 16:38:46 +0100 Subject: [PATCH] Fix var directory path --- app/bundles/InstallBundle/Configurator/Step/CheckStep.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/bundles/InstallBundle/Configurator/Step/CheckStep.php b/app/bundles/InstallBundle/Configurator/Step/CheckStep.php index c4d7e0640dc..60ddf334590 100644 --- a/app/bundles/InstallBundle/Configurator/Step/CheckStep.php +++ b/app/bundles/InstallBundle/Configurator/Step/CheckStep.php @@ -45,7 +45,7 @@ class CheckStep implements StepInterface * * @var string */ - public $cache_path = '%kernel.root_dir%/var/cache'; + public $cache_path = '%kernel.root_dir%/../var/cache'; /** * Absolute path to log directory. @@ -53,7 +53,7 @@ class CheckStep implements StepInterface * * @var string */ - public $log_path = '%kernel.root_dir%/var/logs'; + public $log_path = '%kernel.root_dir%/../var/logs'; /** * Set the domain URL for use in getting the absolute URL for cli/cronjob generated URLs. @@ -108,11 +108,11 @@ public function checkRequirements() $messages[] = 'mautic.install.config.unwritable'; } - if (!is_writable(str_replace('%kernel.root_dir%', dirname($this->kernelRoot), $this->cache_path))) { + if (!is_writable(str_replace('%kernel.root_dir%', $this->kernelRoot, $this->cache_path))) { $messages[] = 'mautic.install.cache.unwritable'; } - if (!is_writable(str_replace('%kernel.root_dir%', dirname($this->kernelRoot), $this->log_path))) { + if (!is_writable(str_replace('%kernel.root_dir%', $this->kernelRoot, $this->log_path))) { $messages[] = 'mautic.install.logs.unwritable'; }