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