mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-08 02:02:50 +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
|
echo
|
||||||
|
|
||||||
if is_manager_node; then
|
if is_manager_node; then
|
||||||
TRUSTED_CONTAINERS=("so-tcpreplay")
|
set_version
|
||||||
mkdir -p /opt/so/log/tcpreplay
|
if ! docker images | grep so-tcpreplay | grep ":5000" | grep -q $VERSION ; then
|
||||||
update_docker_containers "tcpreplay" "" "" "/opt/so/log/tcpreplay/init.log"
|
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
|
fi
|
||||||
if is_sensor_node; then
|
if is_sensor_node; then
|
||||||
if ! is_manager_node; then
|
if ! is_manager_node; then
|
||||||
|
|||||||
Reference in New Issue
Block a user