Posixly correct = not ==

See #161 #170 should be covered...

Signed-off-by: Justin Cormack <justin.cormack@docker.com>
This commit is contained in:
Justin Cormack 2016-07-20 12:33:01 +01:00
parent 996cab9f17
commit 2971b83f25
2 changed files with 2 additions and 2 deletions

View File

@ -64,7 +64,7 @@ start()
source /var/lib/waagent/CustomData
if [ "${ROLE}" == "MANAGER" ]
if [ "${ROLE}" = "MANAGER" ]
then
docker swarm init \
--auto-accept manager \

View File

@ -15,7 +15,7 @@ start()
# Only start with networking on cloud editions
DOCKER_OPTS="${DOCKER_OPTS} -H unix:///var/run/docker.sock"
if [ "$(mobyplatform)" == "aws" ] || [ "$(mobyplatform)" == "azure" ]
if [ "$(mobyplatform)" = "aws" ] || [ "$(mobyplatform)" = "azure" ]
then
# TODO: Don't do this
DOCKER_OPTS="${DOCKER_OPTS} -H 0.0.0.0:2375"