Skip to content

Commit

Permalink
fix issue loading zeek intel on startup
Browse files Browse the repository at this point in the history
  • Loading branch information
mmguero committed Dec 4, 2023
1 parent acbe2d3 commit 39bdbd5
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion shared/bin/zeek_intel_setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,16 @@ if mkdir -- "$LOCK_DIR" 2>/dev/null; then

# if we have a directory to seed the intel config for the first time, start from a blank slate with just its contents
if [[ -d "${INTEL_DIR}" ]] && [[ -d "${INTEL_PRESEED_DIR}" ]]; then
rsync -av --delete "${INTEL_PRESEED_DIR}"/ "${INTEL_DIR}"/

EXCLUDES=()
EXCLUDES+=( --exclude='..*' )
EXCLUDES+=( --exclude='.dockerignore' )
EXCLUDES+=( --exclude='.gitignore' )
while read MAP_DIR; do
EXCLUDES+=( --exclude="${MAP_DIR}/" )
done < <(echo "${CONFIG_MAP_DIR:-configmap;secretmap}" | tr ';' '\n')

rsync --recursive --delete --delete-excluded "${EXCLUDES[@]}" "${INTEL_PRESEED_DIR}"/ "${INTEL_DIR}"/
mkdir -p "${INTEL_DIR}"/MISP "${INTEL_DIR}"/STIX || true
fi

Expand Down

0 comments on commit 39bdbd5

Please sign in to comment.