Pārlūkot izejas kodu

update syntax docker pull checks for

Blaine Story 1 gadu atpakaļ
vecāks
revīzija
649657ed55
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      roles/docker/templates/docker-pull.sh.j2

+ 1 - 1
roles/docker/templates/docker-pull.sh.j2

@@ -6,7 +6,7 @@ declare -a arr=({{ containers | map(attribute='name') | flatten | map('regex_rep
 for i in "${arr[@]}"; do
   output=$(docker{% if ansible_distribution_major_version|int == 9 %} {% else %}-{% endif %}compose -f /root/docker/$i/docker-compose.yml pull)
 
-  if [[ $(echo $output | grep 'Downloaded newer image') ]]; then
+  if [[ $(echo $output | grep 'layers') ]]; then
     systemctl restart $i
   fi
 done