From d5ddbbd6faacc7224d53d172424453ab08cc00f6 Mon Sep 17 00:00:00 2001 From: SKP Date: Tue, 21 Jan 2020 15:56:45 +0100 Subject: [PATCH] NOT!!! --- dist/setup.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/setup.sh b/dist/setup.sh index f86b2a6..7c894a3 100755 --- a/dist/setup.sh +++ b/dist/setup.sh @@ -551,8 +551,8 @@ install_docker() { # we only support swarm in single host mode, so all labels needed to spawn containers in the swarm # are given to the host setup is run on. Setup must be run on any manager, if swarm mode is enabled # and a swarm was already initialised - if [[ $(docker node inspect ${localnodeid} --format '{{ index .Spec.Labels "io.cyphernode" }}') == "true" ]]; then - step "  [32madd docker node label: io.cyphernode" + if [[ $(docker node inspect ${localnodeid} --format '{{ index .Spec.Labels "io.cyphernode" }}') != "true" ]]; then + step " add docker node label io.cyphernode" try docker node update --label-add io.cyphernode=true ${localnodeid} > /dev/null 2>&1 next fi