From e0f0db96d3076840079b0c93bc8051cc1312c785 Mon Sep 17 00:00:00 2001 From: Leonardo Di Donato Date: Thu, 10 Sep 2020 09:57:52 +0000 Subject: [PATCH] build(rules): fix rules etc dir Co-authored-by: Leonardo Grasso Co-authored-by: Lorenzo Fontana Signed-off-by: Leonardo Di Donato --- rules/CMakeLists.txt | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/rules/CMakeLists.txt b/rules/CMakeLists.txt index d7e8b30c..2a03d662 100644 --- a/rules/CMakeLists.txt +++ b/rules/CMakeLists.txt @@ -37,8 +37,7 @@ if(DEFINED FALCO_COMPONENT) COMPONENT "${FALCO_COMPONENT}" DESTINATION "${FALCO_ETC_DIR}" RENAME "${FALCO_LOCAL_RULES_DEST_FILENAME}") - - # Intentionally *not* installing application_rules.yaml. Not needed when falco is embedded in other projects. +# Intentionally *not* installing application_rules.yaml. Not needed when falco is embedded in other projects. else() install( FILES falco_rules.yaml @@ -57,8 +56,8 @@ else() install( FILES application_rules.yaml - DESTINATION "/etc/falco/rules.available" + DESTINATION "${FALCO_ETC_DIR}/rules.available" RENAME "${FALCO_APP_RULES_DEST_FILENAME}") - install(DIRECTORY DESTINATION "/etc/falco/rules.d") + install(DIRECTORY DESTINATION "${FALCO_ETC_DIR}/rules.d") endif()