mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-07 17:52:46 +01:00
Skip image pull if so-tcpreplay image already exists and is current
This commit is contained in:
@@ -48,9 +48,15 @@ if ! docker ps | grep -q so-tcpreplay; then
|
||||
echo
|
||||
|
||||
if is_manager_node; then
|
||||
TRUSTED_CONTAINERS=("so-tcpreplay")
|
||||
mkdir -p /opt/so/log/tcpreplay
|
||||
update_docker_containers "tcpreplay" "" "" "/opt/so/log/tcpreplay/init.log"
|
||||
set_version
|
||||
if ! docker images | grep so-tcpreplay | grep ":5000" | grep -q $VERSION ; then
|
||||
echo "Pulling so-tcpreplay image"
|
||||
TRUSTED_CONTAINERS=("so-tcpreplay")
|
||||
mkdir -p /opt/so/log/tcpreplay
|
||||
update_docker_containers "tcpreplay" "" "" "/opt/so/log/tcpreplay/init.log"
|
||||
else
|
||||
echo "so-tcpreplay image exists."
|
||||
fi
|
||||
fi
|
||||
if is_sensor_node; then
|
||||
if ! is_manager_node; then
|
||||
|
||||
Reference in New Issue
Block a user