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-05-30 17:59:29 +0300
committerMichael Boelen <michael.boelen@cisofy.com>2016-05-30 17:59:29 +0300
commit268ff68966fddcc8813b7aa0e83492970ead5df0 (patch)
treeb6f73eb21d42aebaeb3f243d6bfab9883f72a0bd /include/data_upload
parent7725ce6cc8148ed01ec7c8ca71e254356c234b6b (diff)
Added error message when --data-urlencode on cURL is not available
Diffstat (limited to 'include/data_upload')
-rw-r--r--include/data_upload6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/data_upload b/include/data_upload
index b6985ce2..977eefb8 100644
--- a/include/data_upload
+++ b/include/data_upload
@@ -130,6 +130,12 @@
echo ""
case ${EXITCODE} in
+ 2)
+ LogText "Result: could not initialize"
+ LogText "Possible cause: most likely your cURL version is too old and does not support the --data-urlencode option."
+ LogText "Suggestion: copy the data to a different server and use a new cURL version there, or use the Lynis Collector tool."
+ echo "${RED}Error${NORMAL}: could not initialize cURL. See ${LOGFILE} for details."
+ ;;
5)
LogText "Result: could not resolve the defined proxy server (${UPLOAD_PROXY_SERVER})."
LogText "Suggestion: check if the proxy is properly defined in the profile."