Explorar el Código

update syntax docker pull checks for

Blaine Story hace 1 año
padre
commit
649657ed55
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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