old docker packages (centos) don't have option -d

master
Marc Wäckerlin 6 years ago
parent adf279d43a
commit b13efe688f
  1. 4
      docker-update

@ -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

Loading…
Cancel
Save