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:
@@ -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.
|
||||
|
Reference in New Issue
Block a user