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

Copilot
2 days ago fa31e236357264f89ad32c22125186cb5e696e2a
Fix shell script issues in opendj-docker/run.sh (#640)

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: vharseko <6818498+vharseko@users.noreply.github.com>
1 files modified
6 ■■■■ changed files
opendj-packages/opendj-docker/run.sh 6 ●●●● patch | view | raw | blame | history
opendj-packages/opendj-docker/run.sh
@@ -29,11 +29,11 @@
  mkdir -p /opt/opendj/data/lib/extensions
fi
# Instance dir does exist? We start opendj whithout detach
# Instance dir does exist? We start opendj without detach
if [ -d ./data/config ]; then
  sh ./upgrade -n
  exec ./bin/start-ds --nodetach
  return
  exit
fi
# If we are here, opendj is not installed & we need to run setup
@@ -49,7 +49,7 @@
sh "${BOOTSTRAP}"
# Check if OPENDJ_REPLICATION_TYPE var is set. If it is - replicate to that server
if [ ! -z ${MASTER_SERVER} ] && [ ! -z ${OPENDJ_REPLICATION_TYPE} ]; then
if [ -n "${MASTER_SERVER}" ] && [ -n "${OPENDJ_REPLICATION_TYPE}" ]; then
  /opt/opendj/bootstrap/replicate.sh
fi