config: Update 5 files
All checks were successful
Test and Publish Templates / test-and-publish (push) Successful in 22s

This commit is contained in:
Your Name
2025-09-01 22:14:11 +12:00
parent 1733efbd28
commit f1b107748a
5 changed files with 27 additions and 10 deletions

View File

@@ -5,13 +5,19 @@ _check_required_env_vars "PROJECT_NAME" "LOCAL_DATA_FOLDER"
cd "${LOCAL_DATA_FOLDER}/config" || _die "Failed to change to config directory"
# Load environment variables
set -a
source "${LOCAL_DATA_FOLDER}/config/service.env"
set +a
# Check that .env file exists and show configuration
if [[ ! -f "${LOCAL_DATA_FOLDER}/config/.env" ]]; then
_die ".env file not found at ${LOCAL_DATA_FOLDER}/config/.env - run install first"
fi
# Start docker compose services
echo "Checking .env configuration..."
CONFIGURED_IP=$(grep "MTX_PATHS_COURT_MAIN_SOURCE" "${LOCAL_DATA_FOLDER}/config/.env" | sed -n 's/.*@\([0-9.]*\):.*/\1/p')
echo "Camera IP from .env: ${CONFIGURED_IP}"
echo "Camera IP from service.env: ${CAMERA_IP}"
# Start docker compose services (docker-compose will read .env file created by install.sh)
echo "Starting ${PROJECT_NAME} services..."
docker compose up -d || _die "Failed to start Docker Compose services"
# Wait for services to be healthy