#4388 -- Check for Docker Compose updates on the initial install.

This commit is contained in:
Buster "Silver Eagle" Neece 2021-07-10 06:48:01 -05:00
parent 079c9eedd3
commit 0328f5e455
No known key found for this signature in database
GPG Key ID: 6D9E12FF03411F4E
1 changed files with 11 additions and 1 deletions

View File

@ -287,7 +287,17 @@ install() {
fi
if [[ $(command -v docker-compose) && $(docker-compose --version) ]]; then
echo "Docker Compose is already installed! Continuing..."
# Check for update to Docker Compose
local CURRENT_COMPOSE_VERSION
CURRENT_COMPOSE_VERSION=$(docker-compose version --short)
if [ "$(version-number "$COMPOSE_VERSION")" -gt "$(version-number "$CURRENT_COMPOSE_VERSION")" ]; then
if ask "Your version of Docker Compose is out of date. Attempt to update it automatically?" Y; then
install-docker-compose
fi
else
echo "Docker Compose is already installed and up to date! Continuing..."
fi
else
if ask "Docker Compose does not appear to be installed. Install Docker Compose now?" Y; then
install-docker-compose