mirror of
https://github.com/CISOfy/lynis.git
synced 2025-07-28 08:14:10 +02:00
Added error message when --data-urlencode on cURL is not available
This commit is contained in:
parent
7725ce6cc8
commit
268ff68966
@ -130,6 +130,12 @@
|
|||||||
echo ""
|
echo ""
|
||||||
|
|
||||||
case ${EXITCODE} in
|
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)
|
5)
|
||||||
LogText "Result: could not resolve the defined proxy server (${UPLOAD_PROXY_SERVER})."
|
LogText "Result: could not resolve the defined proxy server (${UPLOAD_PROXY_SERVER})."
|
||||||
LogText "Suggestion: check if the proxy is properly defined in the profile."
|
LogText "Suggestion: check if the proxy is properly defined in the profile."
|
||||||
|
Loading…
x
Reference in New Issue
Block a user