Install Docker if it's missing
authorJay Pfaffman <pfaffman@relaxpc.com>
Tue, 6 Sep 2016 22:17:05 +0000 (22:17 +0000)
committerJay Pfaffman <pfaffman@relaxpc.com>
Tue, 6 Sep 2016 22:17:05 +0000 (22:17 +0000)
discourse-setup

index 688b0c4e87097dc5344de627f6fd07aa23207eb3..447884419e633777ae4410f3aec5358783516beb 100755 (executable)
@@ -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