From 7cf781fc0cf2542040f35e40cf79a1ab079c59f0 Mon Sep 17 00:00:00 2001 From: Jay Pfaffman Date: Tue, 6 Sep 2016 22:17:05 +0000 Subject: [PATCH] Install Docker if it's missing --- discourse-setup | 2 ++ 1 file changed, 2 insertions(+) diff --git a/discourse-setup b/discourse-setup index 688b0c4..4478844 100755 --- a/discourse-setup +++ b/discourse-setup @@ -15,10 +15,12 @@ check_root() { ## Do we have docker? ## check_and_install_docker () { + docker_path=`which docker.io || which docker` if [ -z $docker_path ]; then read -p "Docker not installed. Enter to install from https://get.docker.com/ or Ctrl+C to exit" curl https://get.docker.com/ | sh fi + docker_path=`which docker.io || which docker` if [ -z $docker_path ]; then echo Docker install failed. Quitting. exit -- 2.25.1