mirror of
https://github.com/falcosecurity/falco.git
synced 2025-09-25 20:30:47 +00:00
chore(scripts/falco-driver-loader): improve curl resiliency
Fixes #2334 Signed-off-by: Furkan <furkan.turkal@trendyol.com>
This commit is contained in:
@@ -656,11 +656,11 @@ KERNEL_VERSION=$(uname -v | sed 's/#\([[:digit:]]\+\).*/\1/')
|
|||||||
|
|
||||||
DRIVERS_REPO=${DRIVERS_REPO:-"@DRIVERS_REPO@"}
|
DRIVERS_REPO=${DRIVERS_REPO:-"@DRIVERS_REPO@"}
|
||||||
|
|
||||||
|
FALCO_DRIVER_CURL_OPTIONS="-fsS --connect-timeout 5 --max-time 60 --retry 3 --retry-max-time 120"
|
||||||
|
|
||||||
if [ -n "$DRIVER_INSECURE_DOWNLOAD" ]
|
if [ -n "$DRIVER_INSECURE_DOWNLOAD" ]
|
||||||
then
|
then
|
||||||
FALCO_DRIVER_CURL_OPTIONS=-fsSk
|
FALCO_DRIVER_CURL_OPTIONS+=" -k"
|
||||||
else
|
|
||||||
FALCO_DRIVER_CURL_OPTIONS=-fsS
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
FALCO_DRIVER_CURL_OPTIONS+=" "${DRIVER_CURL_OPTIONS}
|
FALCO_DRIVER_CURL_OPTIONS+=" "${DRIVER_CURL_OPTIONS}
|
||||||
|
Reference in New Issue
Block a user