Skip to content

Commit 7d1641e

Browse files
authored
Fix named command warning (hestiacp#3447)
1 parent d3f3207 commit 7d1641e

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

bin/v-list-sys-config

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -268,11 +268,13 @@ csv_list() {
268268
# Action #
269269
#----------------------------------------------------------#
270270

271-
version=$(named -v | awk 'NR==1{print $2}')
272-
if version_ge '9.16.18' $version; then
273-
SUPPORT_DNSSEC="no"
274-
else
275-
SUPPORT_DNSSEC="yes"
271+
if [ -n "$DNS_SYSTEM" ]; then
272+
version=$(named -v | awk 'NR==1{print $2}')
273+
if version_ge '9.16.18' $version; then
274+
SUPPORT_DNSSEC="no"
275+
else
276+
SUPPORT_DNSSEC="yes"
277+
fi
276278
fi
277279

278280
# Listing data

0 commit comments

Comments
 (0)