1
0
mirror of https://github.com/mailcow/mailcow-dockerized.git synced 2024-12-25 02:29:32 +02:00

Detect docker compose version of form v2.x

This commit is contained in:
Josiah Adenegan 2023-11-25 20:36:40 +00:00
parent 979f5475c3
commit a4fa8a4fae
No known key found for this signature in database
GPG Key ID: C7B27F7AE7A5BF54

View File

@ -26,7 +26,7 @@ for bin in openssl curl docker git awk sha1sum grep cut; do
done
if docker compose > /dev/null 2>&1; then
if docker compose version --short | grep "^2." > /dev/null 2>&1; then
if docker compose version --short | grep -e "^2." -e "^v2." > /dev/null 2>&1; then
COMPOSE_VERSION=native
echo -e "\e[33mFound Docker Compose Plugin (native).\e[0m"
echo -e "\e[33mSetting the DOCKER_COMPOSE_VERSION Variable to native\e[0m"
@ -553,4 +553,4 @@ else
echo -e "\e[33mCannot determine current git repository version...\e[0m"
fi
detect_bad_asn
detect_bad_asn