Additional logging

This commit is contained in:
mboelen 2015-08-19 16:02:50 +02:00
parent 2e87b8fde9
commit 8c1e1f29a3
1 changed files with 3 additions and 0 deletions

View File

@ -97,9 +97,12 @@ output "Settings file: ${SETTINGS_FILE}"
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}"
logtext "Result: found self-signed certificate, however not related -k upload option"
else
output "${RED}Error: ${NORMAL}cURL exited with code ${EXITCODE}"
logtext "Result: cURL exited with code ${EXITCODE}"
fi
logtext "Result: quitting, can't check license"
ExitFatal
fi
UPLOAD_CODE=`echo ${UPLOAD} | head -n 1 | awk '{ if ($1=="Response") { print $2 }}'`