|
|
@ -42,8 +42,8 @@ for f in $*; do |
|
|
|
for param in $(sed -n '/^ *\([^:]\+\): *$/{s,,'"${name}"'_\1,;h};/^ *image: */{s///;G;s/\n/ /p}' $file); do |
|
|
|
for param in $(sed -n '/^ *\([^:]\+\): *$/{s,,'"${name}"'_\1,;h};/^ *image: */{s///;G;s/\n/ /p}' $file); do |
|
|
|
IFS=" " |
|
|
|
IFS=" " |
|
|
|
if [ -z "$limit" ] || [[ "${param}" =~ " ${name}_${limit}" ]]; then |
|
|
|
if [ -z "$limit" ] || [[ "${param}" =~ " ${name}_${limit}" ]]; then |
|
|
|
echo "....update $param: docker service update -d --image $param" |
|
|
|
echo "....update $param: docker service update --image $param" |
|
|
|
docker service update -d --image $param |
|
|
|
docker service update --image $param |
|
|
|
fi |
|
|
|
fi |
|
|
|
done |
|
|
|
done |
|
|
|
done |
|
|
|
done |
|
|
|