Merge pull request #310 from justincormack/posixlyequal

Posixly correct = not ==
This commit is contained in:
Justin Cormack 2016-07-20 14:20:52 +01:00 committed by GitHub
commit 58625d3a1f
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"