|
@ -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 \| | |
|
|