From ade07aa5d24c63b2d940fb0bf717e9de6f7cd1fa Mon Sep 17 00:00:00 2001 From: doug Date: Mon, 29 Oct 2018 16:15:48 -0400 Subject: [PATCH] soup: improve detection of Docker image updates #1342 --- bin/soup | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/soup b/bin/soup index 6332123..d4ed8dd 100755 --- a/bin/soup +++ b/bin/soup @@ -190,13 +190,13 @@ if [ -f /etc/nsm/elasticdownload.conf ] && [ -f /usr/sbin/so-elastic-stop ] && [ . /usr/sbin/so-elastic-common for i in so-curator so-domainstats so-elastalert so-elasticsearch so-freqserver so-kibana so-logstash; do OUTPUT=`/usr/bin/docker pull --disable-content-trust=false $DOCKERHUB/$i` - #echo $OUTPUT if echo $OUTPUT | grep -q "up to date"; then echo "$i image is up to date." - else + elif echo $OUTPUT | grep -q "Downloaded newer image for "; then echo "$i has been updated." RESTART_CONTAINERS=yes - #APPLY_CONFIG=yes + else + echo "Error checking for $i update." fi done if [ "$RESTART_CONTAINERS" == "yes" ]; then