fix distinct service names ending up in joint service token

This commit is contained in:
Frederik Ring 2021-07-10 08:09:55 +02:00
parent a8f013e16a
commit dda71c3a5d

View File

@ -71,7 +71,7 @@ if [ "$CONTAINERS_TO_STOP_TOTAL" != "0" ]; then
done done
if [ -n "$SERVICES_REQUIRING_UPDATE" ]; then 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 docker service update --force $SERVICE_NAME
done done
fi fi