aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2021-04-05 10:45:42 -0300
committerSilvio Rhatto <rhatto@riseup.net>2021-04-05 10:45:42 -0300
commitc02b560cc4a5f91cdf3f244955d12b60cb0ab94b (patch)
treeed46ffa48e35b1aefdc250d52c3efcb98c319cd4
parentace3a8582d2c854389d7a52ab4dc30a2034a005f (diff)
downloadtrashman-c02b560cc4a5f91cdf3f244955d12b60cb0ab94b.tar.gz
trashman-c02b560cc4a5f91cdf3f244955d12b60cb0ab94b.tar.bz2
Fix: docker: distro pubkey (2)
-rwxr-xr-xshare/trashman/docker/unix/linux/debian/install5
1 files changed, 3 insertions, 2 deletions
diff --git a/share/trashman/docker/unix/linux/debian/install b/share/trashman/docker/unix/linux/debian/install
index fb45711..728a270 100755
--- a/share/trashman/docker/unix/linux/debian/install
+++ b/share/trashman/docker/unix/linux/debian/install
@@ -18,10 +18,11 @@ RELEASE="`trashman_distro_release`"
apt-get update && trashman_apt_install apt-transport-https
# Install pubkey
-trashman_install_apt_key $SHARE/docker/unix/linux/$DISTRO/pubkey.gpg docker.gpg
+#trashman_install_apt_key $SHARE/docker/unix/linux/$DISTRO/pubkey.gpg docker.gpg
+curl -fsSL https://download.docker.com/linux/$DISTRO/gpg | gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
# Create sources.list entry
-echo "deb [arch=$ARCH] https://download.docker.com/linux/$DISTRO $RELEASE stable" > /etc/apt/sources.list.d/docker.list
+echo "deb [arch=$ARCH signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/$DISTRO $RELEASE stable" > /etc/apt/sources.list.d/docker.list
# Update and install
apt-get update && trashman_apt_install docker-ce docker-compose || exit 1