$sc->checkDeps();
$sc->checkDirs();
$sc->checkGit();
- if ($this->elasticsearch != '') {
- $sc->checkDatabase();
- }
+ $sc->checkDatabase();
}
public function checkDeps()
public function checkDatabase()
{
+ if ($this->elasticsearch != '') {
+ return;
+ }
+
$es = parse_url($this->elasticsearch);
if (!preg_match("#/.+/#", $es['path'], $matches)) {
$this->fail('Improper elasticsearch url. Elasticsearch requires a'