mirror of https://github.com/CISOfy/lynis.git
Show warning if any error happened during license check
This commit is contained in:
parent
ce0955d05c
commit
391f67e7c2
|
@ -99,7 +99,7 @@ output "Settings file: ${SETTINGS_FILE}"
|
|||
echo "Example: ${WHITE}config:upload_options:-k:${NORMAL}"
|
||||
logtext "Result: found self-signed certificate, however cURL -k option not used."
|
||||
else
|
||||
output "${RED}Error: ${NORMAL}cURL exited with code ${EXITCODE}"
|
||||
echo "${RED}Upload Error: ${NORMAL}cURL exited with code ${EXITCODE}"
|
||||
logtext "Result: cURL exited with code ${EXITCODE}"
|
||||
fi
|
||||
logtext "Result: quitting, can't check license"
|
||||
|
@ -114,9 +114,9 @@ output "Settings file: ${SETTINGS_FILE}"
|
|||
echo ""
|
||||
echo "Possible causes and steps you can take:"
|
||||
echo "- Connection with license server could not be established (try address in your web browser)"
|
||||
echo "- License is expired (listed in Configuration screen)"
|
||||
echo "- No credits left (listed in Configuration screen)"
|
||||
echo "- Collector version of Lynis version outdated (upgrade to latest Lynis or Lynis Collector)"
|
||||
echo "- Incorrect server has been configured in profile"
|
||||
echo "- License is expired (listed in Configuration screen) or No credits left (listed in Configuration screen)"
|
||||
echo "- Collector version of Lynis version outdated (upgrade to latest version of Lynis and/or Lynis Collector)"
|
||||
echo ""
|
||||
echo "If you need support in solving this, please contact support@cisofy.com and include this screen output."
|
||||
echo ""
|
||||
|
@ -141,7 +141,7 @@ output "Settings file: ${SETTINGS_FILE}"
|
|||
echo "Check the last section of the log file for the exact command used, for further troubleshooting"
|
||||
echo "Debug:"
|
||||
echo ${UPLOAD}
|
||||
echo "${RED}Warning${NORMAL}: cURL could not upload data. See ${LOGFILE} for details."
|
||||
echo "${RED}Upload Error${NORMAL}: cURL could not upload data. See ${LOGFILE} for details."
|
||||
# Quit
|
||||
ExitClean
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue