From 099a59cf8ac2346954f4bf2c2b118a9acc15e9b8 Mon Sep 17 00:00:00 2001 From: Kavin <20838718+FireMasterK@users.noreply.github.com> Date: Thu, 19 May 2022 21:06:53 +0100 Subject: [PATCH] Add support for docker compose. --- configure-instance.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure-instance.sh b/configure-instance.sh index 04b4adc..7f96784 100755 --- a/configure-instance.sh +++ b/configure-instance.sh @@ -5,7 +5,7 @@ if [ -z "$(which docker-compose)" ]; then fi # Docker-Compose version check, to prevent "Unsupported configuration option" -COMPOSE_VERSION=$(docker-compose version --short) +COMPOSE_VERSION=$(docker-compose version --short 2>/dev/null || docker compose version --short 2>/dev/null) REQUIRED_COMPOSE_VERSION="1.28.0" if [[ $(printf '%s\n' "$REQUIRED_COMPOSE_VERSION" "$COMPOSE_VERSION" | sort -V | head -n1) != $REQUIRED_COMPOSE_VERSION ]]; then echo "Your docker-compose version of $COMPOSE_VERSION is too old. Please upgrade to $REQUIRED_COMPOSE_VERSION or higher."