2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-08-22 19:20:24 +00:00

Strip out extra text from version string

This commit is contained in:
Mark Gurevich
2023-03-01 11:45:42 -05:00
parent 1098e6943b
commit 60dfa47f37

View File

@@ -66,7 +66,7 @@ echo " };" >>$FILE
# Natural version compare against version of bind.
# If version 9.16.6 or higher, turn off DNSSEC
BIND_VERSION=$(/usr/sbin/named -v | cut -d" " -f2)
BIND_VERSION=$(/usr/sbin/named -v | cut -d" " -f2 | grep -Eo '[0-9]+\.[0-9]+\.[0-9]+' | head -n1)
CONTROL_BIND_VERSION="9.16.6"
# "sort --version-sort" takes lines of version strings and sorts them.