File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -98,6 +98,10 @@ if [ -z "$DOWNLOAD_URL" ]; then
9898 DOWNLOAD_URL=$DEFAULT_DOWNLOAD_URL
9999fi
100100
101+ if [ -z " GPG_KEY_DOWNLOAD_URL" ]; then
102+ GPG_KEY_DOWNLOAD_URL=$DOWNLOAD_URL
103+ fi
104+
101105DEFAULT_REPO_FILE=" docker-ce.repo"
102106if [ -z " $REPO_FILE " ]; then
103107 REPO_FILE=" $DEFAULT_REPO_FILE "
@@ -501,7 +505,7 @@ do_install() {
501505 $sh_c ' apt-get -qq update >/dev/null'
502506 $sh_c " DEBIAN_FRONTEND=noninteractive apt-get -y -qq install $pre_reqs >/dev/null"
503507 $sh_c ' install -m 0755 -d /etc/apt/keyrings'
504- $sh_c " curl -fsSL \" $DOWNLOAD_URL /linux/$lsb_dist /gpg\" -o /etc/apt/keyrings/docker.asc"
508+ $sh_c " curl -fsSL \" GPG_KEY_DOWNLOAD_URL /linux/$lsb_dist /gpg\" -o /etc/apt/keyrings/docker.asc"
505509 $sh_c " chmod a+r /etc/apt/keyrings/docker.asc"
506510 $sh_c " echo \" $apt_repo \" > /etc/apt/sources.list.d/docker.list"
507511 $sh_c ' apt-get -qq update >/dev/null'
You can’t perform that action at this time.
0 commit comments