mirror of
https://github.com/Dvorinka/MyClubServer.git
synced 2026-06-03 18:22:57 +00:00
hot fix #1
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Docker Compose wrapper that respects ESHOP_ENABLED setting
|
||||
# Usage: ./docker-compose-wrapper.sh [docker-compose-args]
|
||||
|
||||
# Read ESHOP_ENABLED from .env file
|
||||
ESHOP_ENABLED=$(grep "^ESHOP_ENABLED=" .env | cut -d'=' -f2 | tr -d '[:space:]')
|
||||
|
||||
# Set up docker compose command based on ESHOP_ENABLED
|
||||
if [ "$ESHOP_ENABLED" = "true" ]; then
|
||||
# E-shop is enabled, include the eshop profile
|
||||
docker compose --profile eshop "$@"
|
||||
else
|
||||
# E-shop is disabled, run without eshop profile
|
||||
docker compose "$@"
|
||||
fi
|
||||
Reference in New Issue
Block a user