mirror of
https://github.com/docker/docker-install.git
synced 2026-11-20 10:03:11 +03:00
From docker/docker - Fixes key installation for other target urls in hack/install.sh
Docker-DCO-1.0-Signed-off-by: Jonas Pfenniger <zimbatm@zimbatm.com> (github: zimbatm)
This commit is contained in:
1 parent
7358226c1e
commit
d083c8fc6d
1 file changed
+5
-1
+5
-1
@@ -108,7 +108,11 @@ case "$lsb_dist" in
|
||||
fi
|
||||
(
|
||||
set -x
|
||||
$sh_c "apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 36A1D7869245C8950F966E92D8576A8BA88D21E9"
|
||||
if [ "https://get.docker.io/" = "$url" ]; then
|
||||
$sh_c "apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 36A1D7869245C8950F966E92D8576A8BA88D21E9"
|
||||
else
|
||||
$sh_c "$curl ${url}gpg | apt-key add -"
|
||||
fi
|
||||
$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'
|
||||
)
|
||||
|
||||
Reference in new issue
Block a user