Fix install.sh of get.docker.com for debian-sudo
(cherry picked from commit daaf9ddfa9a53fb82511accb8ad0fed381670a54)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
| ... | ... |
@@ -474,7 +474,7 @@ do_install() {
|
| 474 | 474 |
|
| 475 | 475 |
( |
| 476 | 476 |
set -x |
| 477 |
- echo "$docker_key" | apt-key add - |
|
| 477 |
+ echo "$docker_key" | $sh_c 'apt-key add -' |
|
| 478 | 478 |
$sh_c "mkdir -p /etc/apt/sources.list.d" |
| 479 | 479 |
$sh_c "echo deb \[arch=$(dpkg --print-architecture)\] ${apt_url}/repo ${lsb_dist}-${dist_version} ${repo} > /etc/apt/sources.list.d/docker.list"
|
| 480 | 480 |
$sh_c 'sleep 3; apt-get update; apt-get install -y -q docker-engine' |