mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

shynome
22.17.2019 03fbe848ca4e2f573491640779c63cdf34ee9139
fix docker replicate.sh errors: syntax error and PATH env error (#64)

1 files modified
9 ■■■■■ changed files
opendj-packages/opendj-docker/bootstrap/replicate.sh 9 ●●●●● patch | view | raw | blame | history
opendj-packages/opendj-docker/bootstrap/replicate.sh
@@ -7,6 +7,7 @@
# If the service is called
MYHOSTNAME=${MYHOSTNAME:-`hostname -f`}
export PATH=/opt/opendj/bin:$PATH
echo "Setting up replication from $MYHOSTNAME to $MASTER_SERVER"
@@ -28,7 +29,7 @@
sleep 5
if [ "$OPENDJ_REPLICATION_TYPE" == "simple" ] then
if [ "$OPENDJ_REPLICATION_TYPE" == "simple" ]; then
  echo "Enabling Standart Replication..."
  /opt/opendj/bin/dsreplication enable --host1 $MYHOSTNAME --port1 4444 \
    --bindDN1 "$ROOT_USER_DN" \
@@ -44,7 +45,7 @@
    --hostSource $MYHOSTNAME --portSource 4444 \
    --hostDestination $MASTER_SERVER --portDestination 4444 -X -n
elif [ "$OPENDJ_REPLICATION_TYPE" == "srs" ] then
elif [ "$OPENDJ_REPLICATION_TYPE" == "srs" ]; then
  echo "Enabling Standalone Replication Servers..."
  dsreplication enable \
   --adminUID admin \
@@ -76,7 +77,7 @@
   --trustAll \
   --no-prompt
elif [ "$OPENDJ_REPLICATION_TYPE" == "sdsr" ] then
elif [ "$OPENDJ_REPLICATION_TYPE" == "sdsr" ]; then
  echo "Enabling Standalone Directory Server Replicas...."
  dsreplication \
   enable \
@@ -109,7 +110,7 @@
   --trustAll \
   --no-prompt
elif [ "$OPENDJ_REPLICATION_TYPE" == "rg" ] then
elif [ "$OPENDJ_REPLICATION_TYPE" == "rg" ]; then
  echo "Enabling Replication Groups..."
  dsconfig \