Skip to content
This repository has been archived by the owner on Apr 19, 2021. It is now read-only.

Commit

Permalink
soup: improve detection of Docker image updates #1342
Browse files Browse the repository at this point in the history
  • Loading branch information
dougburks committed Oct 29, 2018
1 parent dbe7dcc commit ade07aa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bin/soup
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ade07aa

Please sign in to comment.