From 80e90499aafabb27c68a2ddca31339aa125c40ae Mon Sep 17 00:00:00 2001 From: Penghan Wang Date: Sat, 11 Jul 2015 22:37:02 +0800 Subject: [PATCH] Fix failure on adding source list for ubuntu For hybrid cloud, some ubuntu vm images doesn't have the directory `/etc/apt/sources.list.d` which cause failure on creating `/etc/apt/sources.list.d/docker.list`. To fix this issue, create this directory first (if it doesn't exist). Signed-off-by: Penghan Wang --- hack/install.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/hack/install.sh b/hack/install.sh index 4d9985c0f8..2a84a92e97 100755 --- a/hack/install.sh +++ b/hack/install.sh @@ -216,6 +216,7 @@ do_install() { else $sh_c "$curl ${url}gpg | apt-key add -" fi + $sh_c "mkdir -p /etc/apt/sources.list.d" $sh_c "echo deb ${url}ubuntu docker main > /etc/apt/sources.list.d/docker.list" $sh_c 'sleep 3; apt-get update; apt-get install -y -q lxc-docker' )