Skip to content

Commit

Permalink
Delete featureboot for ALEC and CORTEX is they are disabled (#44)
Browse files Browse the repository at this point in the history
  • Loading branch information
mershad-manesh authored Nov 16, 2023
1 parent 9d79270 commit 37bdb9c
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions horizon/scripts/onms-core-init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -457,6 +467,11 @@ if [[ ${ENABLE_ALEC} == "true" ]]; then
cat <<EOF > ${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.
Expand Down

0 comments on commit 37bdb9c

Please sign in to comment.