update(script): makes user able to pass additional custom option to driver-loader curl command

Signed-off-by: Andrea Bonanno <andrea@bonanno.cloud>
This commit is contained in:
Andrea Bonanno
2022-02-15 17:54:15 +01:00
committed by poiana
parent a1d68e848f
commit 7e52db2b42

View File

@@ -626,6 +626,7 @@ print_usage() {
echo " DRIVERS_REPO specify different URL(s) where to look for prebuilt Falco drivers (comma separated)" echo " DRIVERS_REPO specify different URL(s) where to look for prebuilt Falco drivers (comma separated)"
echo " DRIVER_NAME specify a different name for the driver" echo " DRIVER_NAME specify a different name for the driver"
echo " DRIVER_INSECURE_DOWNLOAD whether you want to allow insecure downloads or not" echo " DRIVER_INSECURE_DOWNLOAD whether you want to allow insecure downloads or not"
echo " ADD_CURL_OPTIONS specify additional options to be passed to curl command used to download Falco drivers"
echo "" echo ""
echo "Versions:" echo "Versions:"
echo " Falco version ${FALCO_VERSION}" echo " Falco version ${FALCO_VERSION}"
@@ -652,6 +653,8 @@ else
FALCO_DRIVER_CURL_OPTIONS=-fsS FALCO_DRIVER_CURL_OPTIONS=-fsS
fi fi
FALCO_DRIVER_CURL_OPTIONS+=" "${ADD_CURL_OPTIONS}
if [[ -z "$MAX_RMMOD_WAIT" ]]; then if [[ -z "$MAX_RMMOD_WAIT" ]]; then
MAX_RMMOD_WAIT=60 MAX_RMMOD_WAIT=60
fi fi