title(__('AzuraCast Setup')); $io->writeln(__('Welcome to AzuraCast. Please wait while some key dependencies of AzuraCast are set up...')); $this->runCommand($output, 'azuracast:setup:initialize'); if ($loadFixtures || (!$environment->isProduction() && !$update)) { $io->newLine(); $io->section(__('Installing Data Fixtures')); $this->runCommand($output, 'azuracast:setup:fixtures'); } $io->newLine(); $io->section(__('Refreshing All Stations')); $this->runCommand($output, 'azuracast:radio:restart'); // Update system setting logging when updates were last run. $settings = $settingsRepo->readSettings(); $settings->updateUpdateLastRun(); $settingsRepo->writeSettings($settings); if ($update) { $io->success( [ __('AzuraCast is now updated to the latest version!'), ] ); } else { $public_ip = $acCentral->getIp(false); /** @noinspection HttpUrlsUsage */ $io->success( [ __('AzuraCast installation complete!'), __('Visit %s to complete setup.', 'http://' . $public_ip), ] ); } return 0; } }