setup.sh: fix docker-compose — check for both plugin and standalone, install standalone docker-compose if plugin unavailable

This commit is contained in:
Ada
2026-04-06 10:36:25 -04:00
parent 821a990a50
commit 780eb63f85

View File

@@ -41,10 +41,12 @@ if command -v docker &> /dev/null; then
DOCKER_VERSION=$(docker --version 2>/dev/null | awk '{print $3}' | tr -d ',')
fi
# Check for docker-compose plugin
# Check for docker-compose plugin OR standalone docker-compose
COMPOSE_INSTALLED=false
if docker compose version &> /dev/null; then
COMPOSE_INSTALLED=true
elif command -v docker-compose &> /dev/null; then
COMPOSE_INSTALLED=true
fi
# Check if repo already exists