Browse Source

Check for docker and docker-compose separately

rafalp 2 years ago
parent
commit
c91b732fc4
1 changed files with 9 additions and 1 deletions
  1. 9 1
      dev

+ 9 - 1
dev

@@ -45,7 +45,7 @@ wait_for_db() {
 
 # Check if user has docker-compose
 if [[ ! $IN_MISAGO_DOCKER = 1 ]]; then
-    if ! command -v docker-compose >/dev/null 2>&1; then
+    if ! command -v docker >/dev/null 2>&1; then
         error "You need to have Docker installed to use this tool."
         echo
         echo "Docker release for your system can be downloaded for free from this page:"
@@ -53,6 +53,14 @@ if [[ ! $IN_MISAGO_DOCKER = 1 ]]; then
         echo
         exit 1
     fi
+    if ! command -v docker-compose >/dev/null 2>&1; then
+        error "You need to have Docker Compose installed to use this tool."
+        echo
+        echo "Docker release for your system can be downloaded for free from this page:"
+        echo "https://www.docker.com/get-started"
+        echo
+        exit 1
+    fi
 fi
 
 # Commands