diff --git a/october b/october index b465c5c..9366690 100755 --- a/october +++ b/october @@ -8,7 +8,7 @@ if (file_exists(__DIR__.'/../../autoload.php')) { require __DIR__.'/vendor/autoload.php'; } -$app = new Symfony\Component\Console\Application('October CMS Bootstrapper', '0.2.2'); +$app = new Symfony\Component\Console\Application('October CMS Bootstrapper', '0.2.3'); $app->add(new \OFFLINE\Bootstrapper\October\Console\InitCommand); $app->add(new \OFFLINE\Bootstrapper\October\Console\InstallCommand); $app->run(); diff --git a/src/Console/InstallCommand.php b/src/Console/InstallCommand.php index c595fd9..800cde0 100644 --- a/src/Console/InstallCommand.php +++ b/src/Console/InstallCommand.php @@ -167,12 +167,14 @@ protected function execute(InputInterface $input, OutputInterface $output) */ protected function writeConfig($force = false) { + $setup = new Setup($this->config, $this->output); + $setup->config(); + if ( ! $this->firstRun || (file_exists(getcwd() . DS . '.env') && $force === false)) { return $this->output->writeln('-> Configuration already set up. Use --force to regenerate.'); } - $setup = new Setup($this->config, $this->output); - $setup->env()->config(); + $setup->env(); } /**