From 0033a52e283f683de080870e353975865d7ddba9 Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Mon, 27 Oct 2025 00:19:41 -0400 Subject: [PATCH] fix: ignore extra strings on the nginx ubuntu version --- plugins/nginx-vhosts/functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/nginx-vhosts/functions b/plugins/nginx-vhosts/functions index e67cfb070..1cccc2542 100755 --- a/plugins/nginx-vhosts/functions +++ b/plugins/nginx-vhosts/functions @@ -340,7 +340,7 @@ nginx_build_config() { if [[ -z "$NGINX_LOCATION" ]]; then exit 1 fi - NGINX_VERSION="$("$NGINX_LOCATION" -v 2>&1 | cut -d'/' -f 2)" + NGINX_VERSION="$("$NGINX_LOCATION" -v 2>&1 | cut -d'/' -f 2 | awk '{print $1}')" # DEPRECATED: Remove me at 1.0.0 SPDY_SUPPORTED="false" TLS13_SUPPORTED="$(is_tls13_available "$NGINX_VERSION")"