Adjusted logic on so-tcpreplay to handle init for standalone/eval nodes

This commit is contained in:
Jason Ertel
2021-01-13 22:29:58 -05:00
parent 2ccf77eaef
commit 9d0dca05b1

View File

@@ -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