Browse Source

fix: [base] accept ``20.10`` docker version as valid

pull/31/head
Valentin Lab 1 year ago
parent
commit
2c409e26ce
  1. 18
      precise/host/hooks/install.d/60-docker.sh

18
precise/host/hooks/install.d/60-docker.sh

@ -14,7 +14,23 @@ fi
if [ -n "$just_installed" ]; then if [ -n "$just_installed" ]; then
need_restart= need_restart=
docker_version=17
case $(lsb_release -is) in
Debian)
case $(lsb_release -rs) in
10) docker_version=20.10;;
*) docker_version=17;;
esac
;;
Ubuntu)
case $(lsb_release -rs) in
22.04) docker_version=20.10;;
*) docker_version=17;;
esac
;;
*) docker_version=17;;
esac
if ! [[ "$(docker --version)" == "Docker version $docker_version"* ]]; then if ! [[ "$(docker --version)" == "Docker version $docker_version"* ]]; then
version="$(apt-cache madison docker-ce | version="$(apt-cache madison docker-ce |
cut -f 2 -d \| | cut -f 2 -d \| |

Loading…
Cancel
Save