diff --git a/modules/system/console/OctoberInstall.php b/modules/system/console/OctoberInstall.php index feb39002c..415cae64d 100644 --- a/modules/system/console/OctoberInstall.php +++ b/modules/system/console/OctoberInstall.php @@ -74,6 +74,7 @@ class OctoberInstall extends Command if ($this->confirm('Configure advanced options?', false)) { $this->setupEncryptionKey(); $this->setupAdvancedValues(); + $this->askToInstallPlugins(); } else { $this->setupEncryptionKey(true); @@ -118,6 +119,23 @@ class OctoberInstall extends Command $this->writeToConfig('app', ['debug' => $debug]); } + protected function askToInstallPlugins() { + if ($this->confirm('Install the October.Drivers plugin?', false)) { + $this->output->writeln('Installing plugin October.Drivers'); + $this->callSilent('plugin:install', [ + 'name' => 'October.Drivers' + ]); + $this->output->writeln('October.Drivers installed successfully.'); + } + if($this->confirm('Install the Rainlab.Builder plugin?', false)) { + $this->output->writeln('Installing plugin Rainlab.Builder'); + $this->callSilent('plugin:install', [ + 'name' => 'Rainlab.Builder' + ]); + $this->output->writeln('Rainlab.Builder installed successfully.'); + } + } + // // Encryption key //