diff --git a/scripts/pre-flight.sh b/scripts/pre-flight.sh index 4643f17..002fcd8 100644 --- a/scripts/pre-flight.sh +++ b/scripts/pre-flight.sh @@ -14,7 +14,7 @@ for conf in /etc/nginx/conf.d/*.conf; do echo "[Pre-Flight] Checking config: $conf" # Simple extraction of server_name (naive, but works for standard configs) - DOMAINS=$(grep -E "\s*server_name\s+" "$conf" | sed -r 's/.*server_name\s+(.*);/\1/') + DOMAINS=$(grep -E "^\s*server_name\s+" "$conf" | sed -r 's/.*server_name\s+(.*);/\1/') for domain in $DOMAINS; do if [ "$domain" = "_" ] || [ "$domain" = "localhost" ]; then continue; fi