From daba85b61c912505735981ec50fb6e1a5baea205 Mon Sep 17 00:00:00 2001 From: Aldo Lacuku Date: Mon, 5 Sep 2022 09:33:58 +0200 Subject: [PATCH] update(scripts/falco-driver-loader): make some config variables configurable using env variables When running falco-driver-loader in local we need to set some config variables to meaningful values. Those variables usually are set by the CI during the image/packages builds. The changes introduced by this commit allow to set them at start-up time using env variables Signed-off-by: Aldo Lacuku --- scripts/falco-driver-loader | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/falco-driver-loader b/scripts/falco-driver-loader index d6012b5b..4969a701 100755 --- a/scripts/falco-driver-loader +++ b/scripts/falco-driver-loader @@ -618,7 +618,7 @@ if [[ -z "$MAX_RMMOD_WAIT" ]]; then MAX_RMMOD_WAIT=60 fi -DRIVER_VERSION="@DRIVER_VERSION@" +DRIVER_VERSION=${DRIVER_VERSION:-"@DRIVER_VERSION@"} DRIVER_NAME=${DRIVER_NAME:-"@DRIVER_NAME@"} FALCO_VERSION="@FALCO_VERSION@"