aboutsummaryrefslogtreecommitdiff
path: root/src/phorkie/SetupCheck.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/phorkie/SetupCheck.php')
-rw-r--r--src/phorkie/SetupCheck.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/phorkie/SetupCheck.php b/src/phorkie/SetupCheck.php
index f1fbc0f..95fd759 100644
--- a/src/phorkie/SetupCheck.php
+++ b/src/phorkie/SetupCheck.php
@@ -32,9 +32,7 @@ class SetupCheck
$sc->checkDeps();
$sc->checkDirs();
$sc->checkGit();
- if ($this->elasticsearch != '') {
- $sc->checkDatabase();
- }
+ $sc->checkDatabase();
}
public function checkDeps()
@@ -76,6 +74,10 @@ class SetupCheck
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'