mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +01:00
Adjusted logic on so-tcpreplay to handle init for standalone/eval nodes
This commit is contained in:
@@ -51,13 +51,12 @@ if ! docker ps | grep -q so-tcpreplay; then
|
|||||||
TRUSTED_CONTAINERS=("so-tcpreplay")
|
TRUSTED_CONTAINERS=("so-tcpreplay")
|
||||||
mkdir -p /opt/so/log/tcpreplay
|
mkdir -p /opt/so/log/tcpreplay
|
||||||
update_docker_containers "tcpreplay" "" "" "/opt/so/log/tcpreplay/init.log"
|
update_docker_containers "tcpreplay" "" "" "/opt/so/log/tcpreplay/init.log"
|
||||||
elif is_sensor; then
|
fi
|
||||||
|
if is_sensor; then
|
||||||
if ! is_manager; then
|
if ! is_manager; then
|
||||||
echo "Attempting to start replay container. If this fails then you may need to run this command on the manager first."
|
echo "Attempting to start replay container. If this fails then you may need to run this command on the manager first."
|
||||||
fi
|
fi
|
||||||
so-tcpreplay-start || fail "Unable to initialize tcpreplay"
|
so-tcpreplay-start || fail "Unable to initialize tcpreplay"
|
||||||
else
|
|
||||||
echo "Unable to enable replay functionality on this node type."
|
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user