$output->writeln("<comment>Sorry you can't install that version of Chamilo :( Supported versions:</comment><info>".implode(', ', $this->getAvailableVersions()));
return false;
return 0;
}
if (file_exists($configurationPath.'configuration.php') || file_exists($configurationPath.'configuration.yml')) {
$output->writeln("<comment>There's a Chamilo portal here ".$configurationPath." you must run</comment><info>chamilo:setup </info><comment>if you want a fresh install.</comment>");
return false;
if ($this->commandLine) {
$output->writeln("<comment>There's a Chamilo portal here ".$configurationPath." you must run</comment><info>chamilo:setup </info><comment>if you want a fresh install.</comment>");
} else {
$output->writeln("<comment>There's a Chamilo portal here ".$configurationPath." </comment>");
}
return 0;
/*
if (!$dialog->askConfirmation(
$output,
@ -95,7 +104,7 @@ class InstallCommand extends CommonCommand
false
)
) {
return;
return 0;
}
if (!$dialog->askConfirmation(
@ -104,7 +113,7 @@ class InstallCommand extends CommonCommand
false
)
) {
return;
return 0;
}
$this->cleanInstallation($output);*/
}
@ -184,14 +193,14 @@ class InstallCommand extends CommonCommand