From 37bdb9c7a353627e3088fb8bd2cff4ca657076be Mon Sep 17 00:00:00 2001 From: mershad-manesh <105240903+mershad-manesh@users.noreply.github.com> Date: Thu, 16 Nov 2023 15:03:45 -0500 Subject: [PATCH] Delete featureboot for ALEC and CORTEX is they are disabled (#44) --- horizon/scripts/onms-core-init.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/horizon/scripts/onms-core-init.sh b/horizon/scripts/onms-core-init.sh index 142bafd..c85c257 100644 --- a/horizon/scripts/onms-core-init.sh +++ b/horizon/scripts/onms-core-init.sh @@ -407,6 +407,16 @@ EOF opennms-timeseries-api EOF fi +else + if [[ -e "${CONFIG_DIR}/featuresBoot.d/cortex.boot" ]];then + echo "Found ${CONFIG_DIR}/featuresBoot.d/cortex.boot, we are going to remove it." + rm "${CONFIG_DIR}/featuresBoot.d/cortex.boot" + fi + + if [[ -e "${CONFIG_DIR}/featuresBoot.d/timeseries.boot" ]];then + echo "Found ${CONFIG_DIR}/featuresBoot.d/timeseries.boot, we are going to remove it." + rm "${CONFIG_DIR}/featuresBoot.d/timeseries.boot" + fi fi mkdir -p ${CONFIG_DIR_OVERLAY}/opennms.properties.d @@ -457,6 +467,11 @@ if [[ ${ENABLE_ALEC} == "true" ]]; then cat < ${CONFIG_DIR_OVERLAY}/featuresBoot.d/alec.boot alec-opennms-standalone wait-for-kar=opennms-alec-plugin EOF +else + if [[ -e "${CONFIG_DIR}/featuresBoot.d/alec.boot" ]];then + echo "Found ${CONFIG_DIR}/featuresBoot.d/alec.boot, we are going to remove it." + rm "${CONFIG_DIR}/featuresBoot.d/alec.boot" + fi fi # Configure Sink and RPC to use Kafka, and the Kafka Producer.