瀏覽代碼

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 <ph.wang@daocloud.io>
Penghan Wang 10 年之前
父節點
當前提交
80e90499aa
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      hack/install.sh

+ 1 - 0
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'
 			)