diff --git a/framework/core/src/Install/Console/InstallCommand.php b/framework/core/src/Install/Console/InstallCommand.php index e88025497..8864a1f23 100644 --- a/framework/core/src/Install/Console/InstallCommand.php +++ b/framework/core/src/Install/Console/InstallCommand.php @@ -106,7 +106,7 @@ class InstallCommand extends Command $this->enableBundledExtensions(); } catch (Exception $e) { - @unlink(base_path('../config.php')); + @unlink($this->getConfigFile()); throw $e; } @@ -139,7 +139,7 @@ class InstallCommand extends Command $this->info('Writing config'); file_put_contents( - base_path('../config.php'), + $this->getConfigFile(), '