Skip to content

Commit

Permalink
Merge pull request #8421 from hluchas/m3-fix-instal
Browse files Browse the repository at this point in the history
Fix var directory paths in installer
  • Loading branch information
alanhartless committed Feb 11, 2020
2 parents 14e3a5b + 0ba60d4 commit ee7c320
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/bundles/InstallBundle/Configurator/Step/CheckStep.php
Expand Up @@ -45,15 +45,15 @@ 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.
* Required in step.
*
* @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.
Expand Down Expand Up @@ -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';
}

Expand Down

0 comments on commit ee7c320

Please sign in to comment.