1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

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>
This commit is contained in:
Penghan Wang 2015-07-11 22:37:02 +08:00
parent 9264d38424
commit 80e90499aa

View file

@ -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'
)