[Ubuntu] Fix add key in containers.sh script (#2196)

* fix add key

* fix apt-key add
This commit is contained in:
Aleksandr Chebotov
2020-12-07 15:48:49 +03:00
committed by GitHub
parent 3cd4e423d8
commit d7b5e5afb7

View File

@@ -9,7 +9,7 @@ install_packages=(podman buildah skopeo)
source /etc/os-release
sh -c "echo 'deb https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/x${NAME}_${VERSION_ID}/ /' > /etc/apt/sources.list.d/devel:kubic:libcontainers:stable.list"
wget -nv https://download.opensuse.org/repositories/devel:kubic:libcontainers:stable/x${NAME}_${VERSION_ID}/Release.key -O Release.key
apt-key add - < Release.key
apt-key add Release.key
apt-get update -qq
apt-get -qq -y install ${install_packages[@]}
mkdir -p /etc/containers