Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/CISOfy/lynis.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Boelen <michael.boelen@cisofy.com>2016-07-30 17:41:34 +0300
committerMichael Boelen <michael.boelen@cisofy.com>2016-07-30 17:41:34 +0300
commit95b24f074f8f06e358d429c774411555daf35113 (patch)
treee6e19d501bfe884500e9e3551af838c00cc9cc78 /include/tests_nameservices
parent4faaa10a8c253811ec83aa916592ccf9115c7320 (diff)
Initialize variables and style improvements
Diffstat (limited to 'include/tests_nameservices')
-rw-r--r--include/tests_nameservices4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/tests_nameservices b/include/tests_nameservices
index fdf647e3..7b6cba17 100644
--- a/include/tests_nameservices
+++ b/include/tests_nameservices
@@ -28,7 +28,7 @@
#
BIND_RUNNING=0
BIND_CONFIG_LOCS="/etc /etc/bind /usr/local/etc /usr/local/etc/namedb"
- BIND_CONFIG_LOCATIONS=""
+ BIND_CONFIG_LOCATION=""
POWERDNS_RUNNING=0
POWERDNS_CONFIG_LOCS="/etc/powerdns /usr/local/etc"
POWERDNS_AUTH_CONFIG_LOCATION=""
@@ -319,7 +319,7 @@
LogText "Result: found configuration file (${BIND_CONFIG_LOCATION})"
fi
done
- if [ ! "${BIND_CONFIG_LOCATION}" = "" ]; then
+ if [ ! -z "${BIND_CONFIG_LOCATION}" ]; then
Display --indent 4 --text "- Checking BIND configuration file" --result "${STATUS_FOUND}" --color GREEN
else
Display --indent 4 --text "- Checking BIND configuration file" --result "${STATUS_NOT_FOUND}" --color YELLOW