diff options
-rwxr-xr-x | share/trashman/podman/unix/linux/ubuntu/install | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/share/trashman/podman/unix/linux/ubuntu/install b/share/trashman/podman/unix/linux/ubuntu/install index df96d70..216ed60 100755 --- a/share/trashman/podman/unix/linux/ubuntu/install +++ b/share/trashman/podman/unix/linux/ubuntu/install @@ -18,9 +18,11 @@ VERSION="7.3" VERSION="`echo $VERSION_ID | tr -d '.'`" # Only use packages from Kubic if on Ubuntu 20.04 or below -if test "$NAME" -eq "Ubuntu" && test $VERSION -le 2004; then - echo "deb https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/testing/xUbuntu_${VERSION_ID}/ /" | sudo tee /etc/apt/sources.list.d/devel:kubic:libcontainers:testing.list - curl -L https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/testing/xUbuntu_${VERSION_ID}/Release.key | sudo apt-key add - +if [ "$NAME" = "Ubuntu" ]; then + if [ $VERSION -le 2004 ]; then + echo "deb https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/testing/xUbuntu_${VERSION_ID}/ /" | sudo tee /etc/apt/sources.list.d/devel:kubic:libcontainers:testing.list + curl -L https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/testing/xUbuntu_${VERSION_ID}/Release.key | sudo apt-key add - + fi fi # Install podman |