Commit 3919c8b2 authored by Pedro Eduardo Trujillo's avatar Pedro Eduardo Trujillo
Browse files

Corrige posición de separador

Los servicios se buscan por prefijos coincidentes, así que no se
puede comprobar usando la segunda parte de su nombre.
parent 2e1d4f05
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -12,7 +12,7 @@ checkDeployCmd="\
		echo \"Checking service status, try \${i}/${STATUS_CHECK_RETRIES} ...\" && \
		if [ \"\${SWARM_MODE}\" = true ]; \
		then \
			stackServices=\$(docker service ls -f name=_${SERVICE} --format '{{.Replicas}}') ; \
			stackServices=\$(docker service ls -f name=${SERVICE}_ --format '{{.Replicas}}') ; \
			serviceCount=\$(echo \"\${stackServices}\" | /usr/bin/grep -cE '.+') ; \
			runningServiceCount=\$(echo \"\${stackServices}\" | /usr/bin/grep -cE '([0-9]+)\/\1') ; \
			statusCheckCmd=\"[ \"\${serviceCount}\" -ne \"0\" -a \"\${serviceCount:-_}\" = \"\${runningServiceCount:--}\" ]\" ; \