#!/bin/bash set -e if [[ "$COMPOSE_VERSION" != "02b" ]]; then echo "ERROR: Please upgrade your docker compose file. Exiting." exit 1 fi if [ -z "$SERVER_ADDRESS" ]; then echo "SERVER_ADDRESS environment variable is not set. Exiting." exit 1 fi DEBUG_VALUE="False" if [[ "${DEBUG_MODE,,}" == "true" ]]; then DEBUG_VALUE="True" fi cat > /app/wireguard_webadmin/production_settings.py <