mirror of
https://github.com/offen/docker-volume-backup.git
synced 2026-01-06 08:57:09 +08:00
fix distinct service names ending up in joint service token
This commit is contained in:
parent
a8f013e16a
commit
dda71c3a5d
1 changed files with 1 additions and 1 deletions
|
|
@ -71,7 +71,7 @@ if [ "$CONTAINERS_TO_STOP_TOTAL" != "0" ]; then
|
|||
done
|
||||
|
||||
if [ -n "$SERVICES_REQUIRING_UPDATE" ]; then
|
||||
for SERVICE_NAME in "$(echo -n "$SERVICES_REQUIRING_UPDATE" | tr ' ' '\n' | sort -u)"; do
|
||||
for SERVICE_NAME in $(echo -n "$SERVICES_REQUIRING_UPDATE" | tr ' ' '\n' | sort -u); do
|
||||
docker service update --force $SERVICE_NAME
|
||||
done
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue