diff --git a/bin/installer b/bin/installer index 5adc314fa..d27e9bfa8 100644 --- a/bin/installer +++ b/bin/installer @@ -18,5 +18,5 @@ $console->command( new App\Installer\Command\InstallCommand($environment) ); -$console->setDefaultCommand('install'); +$console->setDefaultCommand('install', true); $console->run(); diff --git a/src/Installer/Command/InstallCommand.php b/src/Installer/Command/InstallCommand.php index 70a8ebb98..2384d67e8 100644 --- a/src/Installer/Command/InstallCommand.php +++ b/src/Installer/Command/InstallCommand.php @@ -52,7 +52,7 @@ class InstallCommand } // Initialize locale for translated installer/updater. - if ($isNewInstall || empty($azuracastEnv[Environment::LANG])) { + if (!$defaults && ($isNewInstall || empty($azuracastEnv[Environment::LANG]))) { $langOptions = []; foreach (Locale::SUPPORTED_LOCALES as $langKey => $langName) { $langOptions[Locale::stripLocaleEncoding($langKey)] = $langName; @@ -109,19 +109,21 @@ class InstallCommand $io->block( __('Welcome to AzuraCast! Complete the initial server setup by answering a few questions.') ); + + $customize = !$defaults; } else { $io->title( __('AzuraCast Updater') ); - } - if ($defaults) { - $customize = false; - } else { - $customize = $io->confirm( - __('Customize server settings (ports, databases, etc.)?'), - false - ); + if ($defaults) { + $customize = false; + } else { + $customize = $io->confirm( + __('Change installation settings?'), + false + ); + } } if ($customize) {