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

copilot-swe-agent[bot]
2 days ago 05a3be4e777d5ab9e49d16356b92c03e3751f0a8
Fix spelling, return→exit, and unquoted variables in run.sh

Agent-Logs-Url: https://github.com/OpenIdentityPlatform/OpenDJ/sessions/62266ff4-dca1-4e7d-9cb1-f5185eedeb06

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