Update 2 files
All checks were successful
Test and Publish Templates / test-and-publish (push) Successful in 7s

This commit is contained in:
j
2026-01-15 11:52:27 +13:00
parent 878938307c
commit cbc9215042
2 changed files with 13 additions and 10 deletions

View File

@@ -1,12 +1,16 @@
#!/bin/bash
# Helper to detect and use the correct docker compose command
# Detect which compose command is available
if docker compose version &>/dev/null; then
docker_compose() { docker compose "$@"; }
elif command -v docker-compose &>/dev/null; then
docker_compose() { docker-compose "$@"; }
# Detect which compose command is available (check standalone first for Unraid compatibility)
if command -v docker-compose &>/dev/null; then
COMPOSE_CMD="docker-compose"
elif docker compose version &>/dev/null; then
COMPOSE_CMD="docker compose"
else
echo "Error: Neither 'docker compose' nor 'docker-compose' found"
exit 1
fi
docker_compose() {
$COMPOSE_CMD "$@"
}