4
0
mirror of https://github.com/AzuraCast/AzuraCast.git synced 2024-06-14 05:06:37 +00:00

#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

View File

@ -287,7 +287,17 @@ install() {
fi fi
if [[ $(command -v docker-compose) && $(docker-compose --version) ]]; then 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 else
if ask "Docker Compose does not appear to be installed. Install Docker Compose now?" Y; then if ask "Docker Compose does not appear to be installed. Install Docker Compose now?" Y; then
install-docker-compose install-docker-compose