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-06-18 12:14:01 +0300
committerMichael Boelen <michael.boelen@cisofy.com>2016-06-18 12:14:01 +0300
commit983e293eb157131ca5e085e4927ea5fc220edc73 (patch)
treecc5e8bea4af5cfa53f57a73d2c61357f47165857 /include/tests_banners
parent9c093f7a97fb0b9593a303ef7394c3bc5dea99b2 (diff)
Replaced text strings to allow translations
Diffstat (limited to 'include/tests_banners')
-rw-r--r--include/tests_banners30
1 files changed, 15 insertions, 15 deletions
diff --git a/include/tests_banners b/include/tests_banners
index 7537fa5e..f0fe981c 100644
--- a/include/tests_banners
+++ b/include/tests_banners
@@ -37,26 +37,26 @@
if [ ${SKIPTEST} -eq 0 ]; then
LogText "Test: Testing existence /COPYRIGHT or /etc/COPYRIGHT"
if [ -f /COPYRIGHT ]; then
- Display --indent 2 --text "- /COPYRIGHT" --result FOUND --color GREEN
+ Display --indent 2 --text "- /COPYRIGHT" --result "${STATUS_FOUND}" --color GREEN
if [ -s /COPYRIGHT ]; then
LogText "Result: /COPYRIGHT available and contains text"
else
LogText "Result: /COPYRIGHT available, but empty"
fi
else
- Display --indent 2 --text "- /COPYRIGHT" --result "NOT FOUND" --color WHITE
+ Display --indent 2 --text "- /COPYRIGHT" --result "${STATUS_NOT_FOUND}" --color WHITE
LogText "Result: /COPYRIGHT not found"
fi
if [ -f /etc/COPYRIGHT ]; then
- Display --indent 2 --text "- /etc/COPYRIGHT" --result FOUND --color GREEN
+ Display --indent 2 --text "- /etc/COPYRIGHT" --result "${STATUS_FOUND}" --color GREEN
if [ -s /etc/COPYRIGHT ]; then
LogText "Result: /etc/COPYRIGHT available and contains text"
else
LogText "Result: /etc/COPYRIGHT available, but empty"
fi
else
- Display --indent 2 --text "- /etc/COPYRIGHT" --result "NOT FOUND" --color WHITE
+ Display --indent 2 --text "- /etc/COPYRIGHT" --result "${STATUS_NOT_FOUND}" --color WHITE
LogText "Result: /etc/COPYRIGHT not found"
fi
fi
@@ -70,14 +70,14 @@
# LogText "Test: Testing existence /etc/motd"
# if [ -f /etc/motd ]; then
# LogText "Result: file /etc/motd exists"
- # Display --indent 2 --text "- /etc/motd" --result FOUND --color GREEN
+ # Display --indent 2 --text "- /etc/motd" --result "${STATUS_FOUND}" --color GREEN
# if [ ! -L /etc/motd ]; then
# if IsWorldWritable /etc/motd; then
- # Display --indent 4 --text "- /etc/motd permissions" --result WARNING --color RED
+ # Display --indent 4 --text "- /etc/motd permissions" --result "${STATUS_WARNING}" --color RED
# LogText "Result: /etc/motd is world writable. Users can change this file!"
# ReportWarning ${TEST_NO} "H" "/etc/motd is world writable"
# else
- # Display --indent 4 --text "- /etc/motd permissions" --result OK --color GREEN
+ # Display --indent 4 --text "- /etc/motd permissions" --result "${STATUS_OK}" --color GREEN
# LogText "Result: /etc/motd is not world writable."
# fi
# else
@@ -85,7 +85,7 @@
# fi
# else
# LogText "Result: File /etc/motd not found"
- # Display --indent 2 --text "- /etc/motd" --result "NOT FOUND" --color WHITE
+ # Display --indent 2 --text "- /etc/motd" --result "${STATUS_NOT_FOUND}" --color WHITE
# fi
#fi
#
@@ -109,7 +109,7 @@
# # Check if we have 5 or more key words
# if [ ${N} -gt 4 ]; then
# LogText "Result: Found ${N} key words, to warn unauthorized users"
- # Display --indent 4 --text "- /etc/motd contents" --result OK --color GREEN
+ # Display --indent 4 --text "- /etc/motd contents" --result "${STATUS_OK}" --color GREEN
# AddHP 2 2
# else
# LogText "Result: Found only ${N} key words, to warn unauthorized users and could be increased"
@@ -132,11 +132,11 @@
LogText "Result: file /etc/issue exists (symlink)"
Display --indent 2 --text "- /etc/issue" --result SYMLINK --color GREEN
else
- Display --indent 2 --text "- /etc/issue" --result FOUND --color GREEN
+ Display --indent 2 --text "- /etc/issue" --result "${STATUS_FOUND}" --color GREEN
fi
else
LogText "Result: file /etc/issue does not exist"
- Display --indent 2 --text "- /etc/issue" --result "NOT FOUND" --color WHITE
+ Display --indent 2 --text "- /etc/issue" --result "${STATUS_NOT_FOUND}" --color WHITE
fi
fi
#
@@ -160,7 +160,7 @@
# Check if we have 5 or more key words
if [ ${N} -gt 4 ]; then
LogText "Result: Found ${N} key words (5 or more suggested), to warn unauthorized users"
- Display --indent 4 --text "- /etc/issue contents" --result OK --color GREEN
+ Display --indent 4 --text "- /etc/issue contents" --result "${STATUS_OK}" --color GREEN
AddHP 2 2
else
LogText "Result: Found only ${N} key words (5 or more suggested), to warn unauthorized users and could be increased"
@@ -184,11 +184,11 @@
Display --indent 2 --text "- /etc/issue.net" --result SYMLINK --color GREEN
else
LogText "Result: file /etc/issue.net exists"
- Display --indent 2 --text "- /etc/issue.net" --result FOUND --color GREEN
+ Display --indent 2 --text "- /etc/issue.net" --result "${STATUS_FOUND}" --color GREEN
fi
else
LogText "Result: file /etc/issue.net does not exist"
- Display --indent 2 --text "- /etc/issue.net" --result "NOT FOUND" --color WHITE
+ Display --indent 2 --text "- /etc/issue.net" --result "${STATUS_NOT_FOUND}" --color WHITE
fi
fi
#
@@ -212,7 +212,7 @@
# Check if we have 5 or more key words
if [ ${N} -gt 4 ]; then
LogText "Result: Found ${N} key words, to warn unauthorized users"
- Display --indent 4 --text "- /etc/issue.net contents" --result OK --color GREEN
+ Display --indent 4 --text "- /etc/issue.net contents" --result "${STATUS_OK}" --color GREEN
AddHP 2 2
else
LogText "Result: Found only ${N} key words, to warn unauthorized users and could be increased"