setup.sh: fix docker-compose — check for both plugin and standalone, install standalone docker-compose if plugin unavailable
This commit is contained in:
@@ -41,10 +41,12 @@ if command -v docker &> /dev/null; then
|
|||||||
DOCKER_VERSION=$(docker --version 2>/dev/null | awk '{print $3}' | tr -d ',')
|
DOCKER_VERSION=$(docker --version 2>/dev/null | awk '{print $3}' | tr -d ',')
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Check for docker-compose plugin
|
# Check for docker-compose plugin OR standalone docker-compose
|
||||||
COMPOSE_INSTALLED=false
|
COMPOSE_INSTALLED=false
|
||||||
if docker compose version &> /dev/null; then
|
if docker compose version &> /dev/null; then
|
||||||
COMPOSE_INSTALLED=true
|
COMPOSE_INSTALLED=true
|
||||||
|
elif command -v docker-compose &> /dev/null; then
|
||||||
|
COMPOSE_INSTALLED=true
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Check if repo already exists
|
# Check if repo already exists
|
||||||
|
|||||||
Reference in New Issue
Block a user