|
@ -3,7 +3,7 @@ |
|
|
case "$1" in |
|
|
case "$1" in |
|
|
|
|
|
|
|
|
'master') |
|
|
'master') |
|
|
ARGS="-ip `hostname -i` -mdir /data" |
|
|
|
|
|
|
|
|
ARGS="-mdir /data" |
|
|
# Is this instance linked with an other master? (Docker commandline "--link master1:master") |
|
|
# Is this instance linked with an other master? (Docker commandline "--link master1:master") |
|
|
if [ -n "$MASTER_PORT_9333_TCP_ADDR" ] ; then |
|
|
if [ -n "$MASTER_PORT_9333_TCP_ADDR" ] ; then |
|
|
ARGS="$ARGS -peers=$MASTER_PORT_9333_TCP_ADDR:$MASTER_PORT_9333_TCP_PORT" |
|
|
ARGS="$ARGS -peers=$MASTER_PORT_9333_TCP_ADDR:$MASTER_PORT_9333_TCP_PORT" |
|
|