projects
/
discourse_docker.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1860218
)
Install Docker if it's missing
author
Jay Pfaffman
<pfaffman@relaxpc.com>
Tue, 6 Sep 2016 22:17:05 +0000
(22:17 +0000)
committer
Jay Pfaffman
<pfaffman@relaxpc.com>
Tue, 6 Sep 2016 22:17:05 +0000
(22:17 +0000)
discourse-setup
patch
|
blob
|
blame
|
history
diff --git
a/discourse-setup
b/discourse-setup
index 688b0c4e87097dc5344de627f6fd07aa23207eb3..447884419e633777ae4410f3aec5358783516beb 100755
(executable)
--- 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