mirror of
https://github.com/CISOfy/lynis.git
synced 2025-07-29 16:54:26 +02:00
Show help on screen
This commit is contained in:
parent
8c1e1f29a3
commit
0c2a9daef9
@ -94,9 +94,9 @@ output "Settings file: ${SETTINGS_FILE}"
|
|||||||
EXITCODE=$?
|
EXITCODE=$?
|
||||||
if [ ${EXITCODE} -gt 0 ]; then
|
if [ ${EXITCODE} -gt 0 ]; then
|
||||||
if [ ${EXITCODE} -eq 60 ]; then
|
if [ ${EXITCODE} -eq 60 ]; then
|
||||||
output "${RED}Self-signed certificate used on Lynis Enterprise node${NORMAL}"
|
echo "${RED}Self-signed certificate used on Lynis Enterprise node${NORMAL}"
|
||||||
output "If you want to accept a self-signed certificate, use the -k option in the profile."
|
echo "If you want to accept a self-signed certificate, use the -k option in the profile."
|
||||||
output "Example: ${WHITE}config:upload_options:-k:${NORMAL}"
|
echo "Example: ${WHITE}config:upload_options:-k:${NORMAL}"
|
||||||
logtext "Result: found self-signed certificate, however not related -k upload option"
|
logtext "Result: found self-signed certificate, however not related -k upload option"
|
||||||
else
|
else
|
||||||
output "${RED}Error: ${NORMAL}cURL exited with code ${EXITCODE}"
|
output "${RED}Error: ${NORMAL}cURL exited with code ${EXITCODE}"
|
||||||
@ -138,11 +138,11 @@ output "Settings file: ${SETTINGS_FILE}"
|
|||||||
if [ ${EXITCODE} -gt 0 ]; then
|
if [ ${EXITCODE} -gt 0 ]; then
|
||||||
#UPLOAD_CODE=`echo ${UPLOAD} | head -n 1 | awk '{ print $2 }'`
|
#UPLOAD_CODE=`echo ${UPLOAD} | head -n 1 | awk '{ print $2 }'`
|
||||||
#output "Output code from upload: ${UPLOAD_CODE}"
|
#output "Output code from upload: ${UPLOAD_CODE}"
|
||||||
output "${RED}Error: ${NORMAL}Error occurred, cURL ended during the upload of the report data."
|
echo "${RED}Error: ${NORMAL}Error occurred, cURL ended during the upload of the report data."
|
||||||
output "Related exit code: ${EXITCODE}"
|
echo "Related exit code: ${EXITCODE}"
|
||||||
output "Check the last section of the log file for the exact command used, for further troubleshooting"
|
echo "Check the last section of the log file for the exact command used, for further troubleshooting"
|
||||||
output "Debug:"
|
echo "Debug:"
|
||||||
output ${UPLOAD}
|
echo ${UPLOAD}
|
||||||
# Quit
|
# Quit
|
||||||
ExitClean
|
ExitClean
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user