Browse code

Add Fedora support to install_docker.sh

On Fedora, just install the docker-io package as supplied in the
Fedora repository.

Change-Id: Iea74878d3e1c434863c188ea2253817384e56bf4

John Eckersberg authored on 2014/02/14 06:21:24
Showing 1 changed files
... ...
@@ -30,15 +30,19 @@ SERVICE_TIMEOUT=${SERVICE_TIMEOUT:-60}
30 30
 # Install Docker Service
31 31
 # ======================
32 32
 
33
-# Stop the auto-repo updates and do it when required here
34
-NO_UPDATE_REPOS=True
35
-
36
-# Set up home repo
37
-curl https://get.docker.io/gpg | sudo apt-key add -
38
-install_package python-software-properties && \
39
-    sudo sh -c "echo deb $DOCKER_APT_REPO docker main > /etc/apt/sources.list.d/docker.list"
40
-apt_get update
41
-install_package --force-yes lxc-docker socat
33
+if is_fedora; then
34
+    install_package docker-io socat
35
+else
36
+    # Stop the auto-repo updates and do it when required here
37
+    NO_UPDATE_REPOS=True
38
+
39
+    # Set up home repo
40
+    curl https://get.docker.io/gpg | sudo apt-key add -
41
+    install_package python-software-properties && \
42
+        sudo sh -c "echo deb $DOCKER_APT_REPO docker main > /etc/apt/sources.list.d/docker.list"
43
+    apt_get update
44
+    install_package --force-yes lxc-docker socat
45
+fi
42 46
 
43 47
 # Start the daemon - restart just in case the package ever auto-starts...
44 48
 restart_service docker